From: moodler Date: Sat, 28 Aug 2004 07:56:42 +0000 (+0000) Subject: Fix bug 1787 where clean_text is applied on input with slashes added X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=782e1aa6efc562320ad9585fad0fa9afa5e1071c;p=moodle.git Fix bug 1787 where clean_text is applied on input with slashes added --- diff --git a/mod/chat/insert.php b/mod/chat/insert.php index 1192a76845..8cc19758ec 100644 --- a/mod/chat/insert.php +++ b/mod/chat/insert.php @@ -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