From 782e1aa6efc562320ad9585fad0fa9afa5e1071c Mon Sep 17 00:00:00 2001 From: moodler Date: Sat, 28 Aug 2004 07:56:42 +0000 Subject: [PATCH] Fix bug 1787 where clean_text is applied on input with slashes added --- mod/chat/insert.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5