Remove possible path disclosure and add a translatable error message

This commit is contained in:
moodler
2004-08-18 05:47:55 +00:00
parent 2be07df312
commit 5e98103bd0
2 changed files with 2 additions and 2 deletions
+1 -2
View File
@@ -91,8 +91,7 @@
}
}
} else {
error("Sorry, but the file you are looking for was not found ($pathname)",
"$CFG->wwwroot/course/view.php?id=$courseid");
error(get_string("filenotfound", "error"), "$CFG->wwwroot/course/view.php?id=$courseid");
}
exit;
+1
View File
@@ -4,6 +4,7 @@
$string['coursegroupunknown'] = 'Course corresponding to group $a not specified';
$string['erroronline'] = 'Error on line $a';
$string['fieldrequired'] = '\"$a\" is a required field';
$string['filenotfound'] = 'Sorry, the requested file could not be found';
$string['groupalready'] = 'User already belongs to group $a';
$string['groupunknown'] = 'Group $a not associated to specified course';
$string['invalidfieldname'] = '\"$a\" is not a valid field name';