From eeb00fa1ec0a4cfde6e72cf01ba727016c0d0ed1 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Mon, 13 Jan 2003 22:03:24 +0000 Subject: [PATCH] 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 --- phpBB/includes/functions_post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/functions_post.php b/phpBB/includes/functions_post.php index 8ff2680ab3..8b84a76c87 100644 --- a/phpBB/includes/functions_post.php +++ b/phpBB/includes/functions_post.php @@ -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; }