diff --git a/mod/quiz/quizfile.php b/mod/quiz/quizfile.php index 74583a91c05..a4ea748d86d 100644 --- a/mod/quiz/quizfile.php +++ b/mod/quiz/quizfile.php @@ -118,7 +118,8 @@ header("Content-type: $mimetype"); readfile("$pathname"); } else { - error("Sorry, but the file you are looking for was not found ($pathname)", "course/view.php?id=$courseid"); + error("Sorry, but the file you are looking for was not found (".clean_text($pathname).")", + "course/view.php?id=$courseid"); } exit;