mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Fixed bug with empty string
This commit is contained in:
parent
89dfb4c1f3
commit
f038d9a313
1 changed files with 4 additions and 0 deletions
|
@ -482,6 +482,10 @@ function detect_munged_arguments($string) {
|
|||
if (ereg('[\|\`]', $string)) { // check for other bad characters
|
||||
return true;
|
||||
}
|
||||
if (empty($string) or $string == '/') {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue