From: moodler Date: Thu, 10 Jul 2003 06:38:02 +0000 (+0000) Subject: Need to escape slashes here X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7d494f1c2ed29c2944e39a6f4c16f634a03f7657;p=moodle.git Need to escape slashes here --- diff --git a/mod/chat/gui_header_js/jsupdate.php b/mod/chat/gui_header_js/jsupdate.php index 41c9ffee55..d3211bf0e8 100644 --- a/mod/chat/gui_header_js/jsupdate.php +++ b/mod/chat/gui_header_js/jsupdate.php @@ -51,7 +51,7 @@ header("Refresh: 4; URL=jsupdate.php?chat_sid=".$chat_sid."&chat_lasttime=".$cha if ($formatmessage->beep) { $beep = $formatmessage->beep; } - echo "parent.msg.document.write('".$formatmessage->html."\\n');"; + echo "parent.msg.document.write('".addslashes($formatmessage->html)."\\n');"; } } }