aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2002-03-25 13:03:55 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2002-03-25 13:03:55 +0000
commit854e832a044f8e5827f1603b0e3881202c49695a (patch)
treec922bdea7bb5297b64d7077e2ae3a8fcbc0c4319
parent70889081f13417dbcbaf2a4d9076146d596a1235 (diff)
downloadforums-854e832a044f8e5827f1603b0e3881202c49695a.tar
forums-854e832a044f8e5827f1603b0e3881202c49695a.tar.gz
forums-854e832a044f8e5827f1603b0e3881202c49695a.tar.bz2
forums-854e832a044f8e5827f1603b0e3881202c49695a.tar.xz
forums-854e832a044f8e5827f1603b0e3881202c49695a.zip
Should fix bug where a solitary < caused the text to repeat
git-svn-id: file:///svn/phpbb/trunk@2428 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/includes/functions_post.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/functions_post.php b/phpBB/includes/functions_post.php
index 411ee8b7f8..2dc3bd2bfa 100644
--- a/phpBB/includes/functions_post.php
+++ b/phpBB/includes/functions_post.php
@@ -75,7 +75,7 @@ function prepare_message($message, $html_on, $bbcode_on, $smile_on, $bbcode_uid
{
$match_tag = trim($allowed_html_tags[$i]);
- if ( preg_match('/^<\/?' . $match_tag . '\W/i', $hold_string) )
+ if ( preg_match('/^<\/?' . $match_tag . '\b/i', $hold_string) )
{
$tagallowed = true;
}
@@ -90,6 +90,7 @@ function prepare_message($message, $html_on, $bbcode_on, $smile_on, $bbcode_uid
$tmp_message .= preg_replace($html_entities_match, $html_entities_replace, substr($message, $start_html, strlen($message)));
$start_html = strlen($message);
+ $end_html = $start_html;
}
}