]> git.mjollnir.org Git - moodle.git/commitdiff
Need to escape slashes here
authormoodler <moodler>
Thu, 10 Jul 2003 06:38:02 +0000 (06:38 +0000)
committermoodler <moodler>
Thu, 10 Jul 2003 06:38:02 +0000 (06:38 +0000)
mod/chat/gui_header_js/jsupdate.php

index 41c9ffee55584cfc6774095d33d7e5b40a396eb4..d3211bf0e88da3062f5e8532c484464254d24938 100644 (file)
@@ -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');";
              }
          }
      }