Clean pathname before showing an error
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user