Commit 22c2c447 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie

Fix dependency on hsc() being available in error handling code, per

parent 36e159ee
......@@ -480,8 +480,8 @@ class MaharaException extends Exception {
else {
$outputtitle = hsc($outputtitle);
$outputmessage = nl2br(hsc($outputmessage));
$outputtitle = htmlspecialchars($outputtitle, ENT_COMPAT, 'UTF-8');
$outputmessage = nl2br(htmlspecialchars($outputmessage, ENT_COMPAT, 'UTF-8'));
echo <<<EOF
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment