Change to prevent on handlers messed up handling of any link containing "on" :D Fixed, hopefully retaining control of on handlers in all cases

git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3320 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2003-01-13 22:03:24 +00:00
parent 8115a40d0c
commit eeb00fa1ec

View file

@ -72,7 +72,7 @@ function prepare_message($message, $html_on, $bbcode_on, $smile_on, $bbcode_uid
for ($i = 0; $i < sizeof($allowed_html_tags); $i++)
{
$match_tag = trim($allowed_html_tags[$i]);
if (preg_match('#^<\/?' . $match_tag . '(?!(.*?)((style)|(on[\w]+?))[\s]*?)#i', $hold_string))
if (preg_match('#^<\/?' . $match_tag . '(?!(.*?)((style)|( on[\w]+?[\s]?=))[\s]*?)#i', $hold_string))
{
$tagallowed = true;
}