aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/post.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-09-25 18:18:47 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-09-25 18:18:47 +0000
commit9de75b5dcfd96e0f3ba09a77d212ba0a15480691 (patch)
tree386eed08fd5ce5bfbea40221b5c03c77d88e9c93 /phpBB/includes/post.php
parentea43268a218a5182e6379af01d2a722cfcc7a93b (diff)
downloadforums-9de75b5dcfd96e0f3ba09a77d212ba0a15480691.tar
forums-9de75b5dcfd96e0f3ba09a77d212ba0a15480691.tar.gz
forums-9de75b5dcfd96e0f3ba09a77d212ba0a15480691.tar.bz2
forums-9de75b5dcfd96e0f3ba09a77d212ba0a15480691.tar.xz
forums-9de75b5dcfd96e0f3ba09a77d212ba0a15480691.zip
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
Diffstat (limited to 'phpBB/includes/post.php')
-rw-r--r--phpBB/includes/post.php6
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))) )
{