Clean error messages just in case scripts have been injected
This commit is contained in:
@@ -2217,6 +2217,9 @@ function error ($message, $link="") {
|
||||
|
||||
print_header(get_string("error"));
|
||||
echo "<br />";
|
||||
|
||||
$message = clean_text($message); // In case nasties are in here
|
||||
|
||||
print_simple_box($message, "center", "", "#FFBBBB");
|
||||
|
||||
if (!$link) {
|
||||
|
||||
Reference in New Issue
Block a user