From 0cc084856bb45066eadc8d9f042b40288b9f07e5 Mon Sep 17 00:00:00 2001 From: Graham Eames Date: Sat, 6 May 2006 13:38:55 +0000 Subject: [PATCH] Loosen up on the safety checking we do if HTML is on, it appears that we were making things too safe with the new code :/ Ah well, HTML is gone in 3.0.x anyway so we'll avoid this problem there... git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5886 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/functions_post.php b/phpBB/includes/functions_post.php index ff7a21983a..b92394e190 100644 --- a/phpBB/includes/functions_post.php +++ b/phpBB/includes/functions_post.php @@ -61,7 +61,7 @@ function prepare_message($message, $html_on, $bbcode_on, $smile_on, $bbcode_uid foreach ($message_split as $part) { $tag = array(array_shift($matches[0]), array_shift($matches[1]), array_shift($matches[2])); - $message .= htmlspecialchars($part) . clean_html($tag); + $message .= preg_replace($html_entities_match, $html_entities_replace, $part) . clean_html($tag); } $message = addslashes($message);