diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-08-10 22:00:12 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-08-10 22:00:12 +0000 |
| commit | 9899e2b975e13d512cfc9e5d8ac25617130150b7 (patch) | |
| tree | cafdf0710a7565440b346c95869d594db5b41bc7 /phpBB/viewtopic.php | |
| parent | 38444b8f106a020c84977e77134aadee9cbc31bd (diff) | |
| download | forums-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.php | 15 |
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('&', '&', $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("'&'", "&", $message); + } + } + else + { + // Removes UID from BBCode entries + $message = preg_replace("/\:[0-9a-z\:]+\]/si", "]", $message); } $message = make_clickable($message); |
