Clean pathname before showing an error

This commit is contained in:
moodler
2004-10-01 02:15:03 +00:00
parent d683df8086
commit 36e62734ec
+2 -1
View File
@@ -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;