From: moodler Date: Sun, 12 Dec 2004 07:09:51 +0000 (+0000) Subject: Merged fix SC22 from STABLE, even though this file will be rewritten X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8579e156172b843e04982b8026668112bf042dca;p=moodle.git Merged fix SC22 from STABLE, even though this file will be rewritten with Petr's new file handling soon! :-) --- diff --git a/mod/quiz/quizfile.php b/mod/quiz/quizfile.php index 1c8f5f1ec7..22fca1f75d 100644 --- a/mod/quiz/quizfile.php +++ b/mod/quiz/quizfile.php @@ -41,6 +41,9 @@ if (! ($filename = $regs[5])) { error("No valid file name supplied"); } + if (detect_munged_arguments($relativefilepath)) { + error("Errors in the supplied file path"); + } ////////////////////////////////////////// // Info from $pathinfo is now extracted!