Fixed bug with empty string

This commit is contained in:
moodler 2004-03-16 07:11:14 +00:00
parent 89dfb4c1f3
commit f038d9a313

View file

@ -482,6 +482,10 @@ function detect_munged_arguments($string) {
if (ereg('[\|\`]', $string)) { // check for other bad characters if (ereg('[\|\`]', $string)) { // check for other bad characters
return true; return true;
} }
if (empty($string) or $string == '/') {
return true;
}
return false; return false;
} }