In Reply To:
Ps: Could this allow some kind of horrible security breach?
Probably, as then anything will be uploaded including vbs exe com etc...
Maybe better to use:
Code:
if ($filename =~ /\.(vbs|com|exe|bat)$/i) {
return "Bad file!";
}
Installations:
http://www.wiredon.net/gt/