We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 32156ed + cceb861 commit 275c8ffCopy full SHA for 275c8ff
index.php
@@ -61,7 +61,10 @@
61
$failed = false;
62
$fullpaths = [];
63
foreach ($paths as $path) {
64
- $path = clean_param($path, PARAM_PATH);
+ $path = trim(clean_param($path, PARAM_PATH));
65
+ if (empty($path)) { // No blanks, we don't want to check the whole dirroot.
66
+ continue;
67
+ }
68
$fullpath = $CFG->dirroot . '/' . trim($path, '/');
69
if (!is_file($fullpath) && !is_dir($fullpath)) {
70
echo $output->invald_path_message($path);
0 commit comments