mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
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:
@@ -75,7 +75,7 @@ function prepare_message($message, $html_on, $bbcode_on, $smile_on, $bbcode_uid
|
|||||||
{
|
{
|
||||||
$match_tag = trim($allowed_html_tags[$i]);
|
$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;
|
$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)));
|
$tmp_message .= preg_replace($html_entities_match, $html_entities_replace, substr($message, $start_html, strlen($message)));
|
||||||
|
|
||||||
$start_html = strlen($message);
|
$start_html = strlen($message);
|
||||||
|
$end_html = $start_html;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user