all MDL-20821 Removed ereg related deprecated functions

This commit is contained in:
Andrew Davis
2009-11-18 07:36:20 +00:00
parent 4dadad0869
commit 76561f1e4e
70 changed files with 1393 additions and 310 deletions
+1 -1
View File
@@ -1001,7 +1001,7 @@ function detect_munged_arguments($string, $allowdots=1) {
if (substr_count($string, '..') > $allowdots) { // Sometimes we allow dots in references
return true;
}
if (ereg('[\|\`]', $string)) { // check for other bad characters
if (preg_match('/[\|\`]/i', $string)) { // check for other bad characters
return true;
}
if (empty($string) or $string == '/') {