fix unfortunate use of '/' as a regex delimiter in preg_match

This commit is contained in:
Edoardo Vacchi 2013-12-04 20:28:15 +01:00
parent 03be9f288c
commit 32a3cb1021

View File

@ -34,7 +34,7 @@
}
function static_isvalid($id) {
return !preg_match('/[^./\\\\]+/', $id);
return !preg_match('![^./\\\\]+!', $id);
}