From 7d494f1c2ed29c2944e39a6f4c16f634a03f7657 Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 10 Jul 2003 06:38:02 +0000 Subject: [PATCH] Need to escape slashes here --- mod/chat/gui_header_js/jsupdate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');"; } } } -- 2.39.5