diff --git a/lib/weblib.php b/lib/weblib.php index ce456f02558..e4efe8d4729 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -2217,6 +2217,9 @@ function error ($message, $link="") { print_header(get_string("error")); echo "
"; + + $message = clean_text($message); // In case nasties are in here + print_simple_box($message, "center", "", "#FFBBBB"); if (!$link) {