summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraham Eames <grahamje@users.sourceforge.net>2006-05-06 13:38:55 +0000
committerGraham Eames <grahamje@users.sourceforge.net>2006-05-06 13:38:55 +0000
commit0cc084856bb45066eadc8d9f042b40288b9f07e5 (patch)
tree111374973a06de52349ed348204f5feca141d609
parentWe need to make this global to retrieve the cookie name correctly (diff)
downloadphpbb-0cc084856bb45066eadc8d9f042b40288b9f07e5.tar.gz
phpbb-0cc084856bb45066eadc8d9f042b40288b9f07e5.tar.bz2
phpbb-0cc084856bb45066eadc8d9f042b40288b9f07e5.zip
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
-rw-r--r--phpBB/includes/functions_post.php2
1 files changed, 1 insertions, 1 deletions
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);