Should fix bug where a solitary < caused the text to repeat

git-svn-id: file:///svn/phpbb/trunk@2428 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2002-03-25 13:03:55 +00:00
parent 70889081f1
commit 854e832a04

View file

@ -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;
}
}