aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/bbcode.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-09-28 17:09:20 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-09-28 17:09:20 +0000
commitf3844a17f7b5d78a3fff46f653552726defc6499 (patch)
tree1fd5060b6e8d34edf84813d09563a6a11eb5117a /phpBB/includes/bbcode.php
parentc439b286e95b7d12b7c633cb4991e630d430e2ee (diff)
downloadforums-f3844a17f7b5d78a3fff46f653552726defc6499.tar
forums-f3844a17f7b5d78a3fff46f653552726defc6499.tar.gz
forums-f3844a17f7b5d78a3fff46f653552726defc6499.tar.bz2
forums-f3844a17f7b5d78a3fff46f653552726defc6499.tar.xz
forums-f3844a17f7b5d78a3fff46f653552726defc6499.zip
revert r8893 - there were massive problems with the display and select all code
git-svn-id: file:///svn/phpbb/trunk@8954 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/bbcode.php')
-rw-r--r--phpBB/includes/bbcode.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/includes/bbcode.php b/phpBB/includes/bbcode.php
index 726e53fd82..d688f660f2 100644
--- a/phpBB/includes/bbcode.php
+++ b/phpBB/includes/bbcode.php
@@ -570,6 +570,10 @@ class bbcode
// no break;
default:
+ $code = str_replace("\t", '&nbsp; &nbsp;', $code);
+ $code = str_replace(' ', '&nbsp; ', $code);
+ $code = str_replace(' ', ' &nbsp;', $code);
+
// remove newline at the beginning
if (!empty($code) && $code[0] == "\n")
{