diff options
Diffstat (limited to 'phpBB/includes/post.php')
-rw-r--r-- | phpBB/includes/post.php | 6 |
1 files changed, 4 insertions, 2 deletions
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))) ) { |