From 9de75b5dcfd96e0f3ba09a77d212ba0a15480691 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Tue, 25 Sep 2001 18:18:47 +0000 Subject: Updated and fixed various issues, see post in developers forum for info git-svn-id: file:///svn/phpbb/trunk@1083 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/post.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'phpBB/includes/post.php') diff --git a/phpBB/includes/post.php b/phpBB/includes/post.php index ac364f6472..db77d05498 100644 --- a/phpBB/includes/post.php +++ b/phpBB/includes/post.php @@ -28,6 +28,8 @@ function prepare_message($message, $html_on, $bbcode_on, $smile_on, $bbcode_uid { global $board_config; + $allowed_html_tags = split(",", $board_config['allow_html_tags']); + // // Clean up the message // @@ -48,9 +50,9 @@ function prepare_message($message, $html_on, $bbcode_on, $smile_on, $bbcode_uid $length = $end_html - $start_html + 1; $tagallowed = 0; - for($i = 0; $i < sizeof($board_config['allow_html_tags']); $i++) + for($i = 0; $i < sizeof($allowed_html_tags); $i++) { - $match_tag = trim($board_config['allow_html_tags'][$i]); + $match_tag = trim($allowed_html_tags[$i]); if( preg_match("/^[\/]?" . $match_tag . "( .*?)*$/i", trim(substr($message, $start_html + 1, $length - 2))) ) { -- cgit v1.2.1