aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-08-10 22:00:12 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-08-10 22:00:12 +0000
commit9899e2b975e13d512cfc9e5d8ac25617130150b7 (patch)
treecafdf0710a7565440b346c95869d594db5b41bc7 /phpBB/viewtopic.php
parent38444b8f106a020c84977e77134aadee9cbc31bd (diff)
downloadforums-9899e2b975e13d512cfc9e5d8ac25617130150b7.tar
forums-9899e2b975e13d512cfc9e5d8ac25617130150b7.tar.gz
forums-9899e2b975e13d512cfc9e5d8ac25617130150b7.tar.bz2
forums-9899e2b975e13d512cfc9e5d8ac25617130150b7.tar.xz
forums-9899e2b975e13d512cfc9e5d8ac25617130150b7.zip
Various posting updates
git-svn-id: file:///svn/phpbb/trunk@836 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 4e788a0d84..2b2a1a3194 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -480,7 +480,6 @@ for($i = 0; $i < $total_posts; $i++)
$user_sig = htmlspecialchars($user_sig);
}
$message = htmlspecialchars($message);
-// $message = str_replace('&amp;', '&', $message);
}
if($board_config['allow_bbcode'] && $bbcode_uid != "")
@@ -493,6 +492,20 @@ for($i = 0; $i < $total_posts; $i++)
}
$message = bbencode_second_pass($message, $bbcode_uid);
+
+ //
+ // This compensates for bbcode's rather agressive (but I guess necessary)
+ // HTML handling
+ //
+ if(!$postrow[$i]['enable_html'] || ($postrow[$i]['enable_html'] && !$board_config['allow_html']) )
+ {
+ $message = preg_replace("'&amp;'", "&", $message);
+ }
+ }
+ else
+ {
+ // Removes UID from BBCode entries
+ $message = preg_replace("/\:[0-9a-z\:]+\]/si", "]", $message);
}
$message = make_clickable($message);