]> git.mjollnir.org Git - moodle.git/commitdiff
Fix bug 1787 where clean_text is applied on input with slashes added
authormoodler <moodler>
Sat, 28 Aug 2004 07:56:42 +0000 (07:56 +0000)
committermoodler <moodler>
Sat, 28 Aug 2004 07:56:42 +0000 (07:56 +0000)
mod/chat/insert.php

index 1192a76845890ea966ca60c7dc8da7e0564c5df6..8cc19758ec0e35bc5b4640cff8e532e58ea5e37e 100644 (file)
@@ -27,7 +27,7 @@
 
 /// Clean up the message
 
-    $chat_message = clean_text($chat_message, FORMAT_MOODLE);  // Strip bad tags
+    $chat_message = addslashes(clean_text(stripslashes($chat_message), FORMAT_MOODLE));  // Strip bad tags
 
 /// Add the message to the database