From 43edfa0c4f5919bd69ed434e13783b995c6a880c Mon Sep 17 00:00:00 2001 From: Graham Eames Date: Wed, 18 Jan 2006 21:55:52 +0000 Subject: [PATCH] One character errors are so annoying git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5474 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/includes/functions_post.php b/phpBB/includes/functions_post.php index 82ff42c64c..f95b835ab2 100644 --- a/phpBB/includes/functions_post.php +++ b/phpBB/includes/functions_post.php @@ -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++) { $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; } }