diff --git a/mod/resource/type/directory/resource.class.php b/mod/resource/type/directory/resource.class.php index 379699a57eb..137bfb032af 100644 --- a/mod/resource/type/directory/resource.class.php +++ b/mod/resource/type/directory/resource.class.php @@ -37,7 +37,7 @@ function display() { } if ($subdir) { - if (detect_munged_arguments($subdir)) { + if (detect_munged_arguments($subdir, 0)) { error("The value for 'subdir' contains illegal characters!"); } $relativepath = "$relativepath$subdir";