Commit 9825820d authored by Donal McMullan's avatar Donal McMullan

Swap calls to hsc to go directly to htmlspecialchars. The hsc function may not yet be defined.

parent 1b2d41ec
......@@ -485,8 +485,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