mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
One character errors are so annoying
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5474 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
3aee1ad40b
commit
43edfa0c4f
1 changed files with 2 additions and 2 deletions
|
@ -81,9 +81,9 @@ function prepare_message($message, $html_on, $bbcode_on, $smile_on, $bbcode_uid
|
||||||
for ($i = 0; $i < sizeof($allowed_html_tags); $i++)
|
for ($i = 0; $i < sizeof($allowed_html_tags); $i++)
|
||||||
{
|
{
|
||||||
$match_tag = trim($allowed_html_tags[$i]);
|
$match_tag = trim($allowed_html_tags[$i]);
|
||||||
if (preg_match('#^<\/?' . $match_tag . '[> ]#i', $hold_string))
|
if (preg_match('#^<\/?' . $match_tag . '[> ]#is', $hold_string))
|
||||||
{
|
{
|
||||||
$tagallowed = (preg_match('#^<\/?' . $match_tag . ' .*?(style[\t ]*?=|on[\w]+[\t ]*?=)#i', $hold_string)) ? false : true;
|
$tagallowed = (preg_match('#^<\/?' . $match_tag . ' .*?(style[\t ]*?=|on[\w]+[\t ]*?=)#is', $hold_string)) ? false : true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue