aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2003-09-08 07:05:29 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2003-09-08 07:05:29 +0000
commit924684b000a12f1089903eb0ef1c74dc05e1be53 (patch)
tree80d775c2200fbe548316ad1524ad560f12cdb41a /phpBB/includes/functions_posting.php
parent9dc398f3020b099c8aa32ff11c1e7e72e33f39d4 (diff)
downloadforums-924684b000a12f1089903eb0ef1c74dc05e1be53.tar
forums-924684b000a12f1089903eb0ef1c74dc05e1be53.tar.gz
forums-924684b000a12f1089903eb0ef1c74dc05e1be53.tar.bz2
forums-924684b000a12f1089903eb0ef1c74dc05e1be53.tar.xz
forums-924684b000a12f1089903eb0ef1c74dc05e1be53.zip
small things... decode_text now checks for bbcode_uid existence. And yes, i know i have screwed up a lot of posts. :/
git-svn-id: file:///svn/phpbb/trunk@4486 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r--phpBB/includes/functions_posting.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index 671f6cceb2..9dd813150b 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -566,7 +566,8 @@ function decode_text(&$message, $bbcode_uid)
'',
''
);
- $message = str_replace($search, $replace, $message);
+
+ $message = ($bbcode_uid) ? str_replace($search, $replace, $message) : str_replace('<br />', "\n", $message);
$match = array(
'#<!\-\- e \-\-><a href="mailto:(.*?)">.*?</a><!\-\- e \-\->#',