aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
diff options
context:
space:
mode:
authorLudovic Arnaud <ludovic_arnaud@users.sourceforge.net>2003-04-20 20:30:01 +0000
committerLudovic Arnaud <ludovic_arnaud@users.sourceforge.net>2003-04-20 20:30:01 +0000
commit5107b7aafa77fab8533c794ab41d54e5efc8e9b7 (patch)
tree82d19d5a0c50927ddf2d133e0082d79e63b9cc09 /phpBB/includes/functions_posting.php
parent2abf7dc744e030fc927e909e8238bf245e027f98 (diff)
downloadforums-5107b7aafa77fab8533c794ab41d54e5efc8e9b7.tar
forums-5107b7aafa77fab8533c794ab41d54e5efc8e9b7.tar.gz
forums-5107b7aafa77fab8533c794ab41d54e5efc8e9b7.tar.bz2
forums-5107b7aafa77fab8533c794ab41d54e5efc8e9b7.tar.xz
forums-5107b7aafa77fab8533c794ab41d54e5efc8e9b7.zip
First-pass syntax highlightning. Will fix quotes later
git-svn-id: file:///svn/phpbb/trunk@3901 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r--phpBB/includes/functions_posting.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index 389927983a..efd0098471 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -101,6 +101,7 @@ function decode_text(&$message, $bbcode_uid)
'#<!\-\- w \-\-><a href="http:\/\/(.*?)" target="_blank">.*?</a><!\-\- w \-\->#',
'#<!\-\- l \-\-><a href="(.*?)" target="_blank">.*?</a><!\-\- l \-\->#',
'#<!\-\- s(.*?) \-\-><img src="\{SMILE_PATH\}\/.*? \/><!\-\- s\1 \-\->#',
+ '#<.*?>#s'
);
$replace = array(
@@ -109,6 +110,7 @@ function decode_text(&$message, $bbcode_uid)
'\1',
$server_protocol . trim($config['server_name']) . $server_port . preg_replace('/^\/?(.*?)(\/)?$/', '\1', trim($config['script_path'])) . '/\1',
'\1',
+ ''
);
if (empty($censors))
@@ -118,6 +120,7 @@ function decode_text(&$message, $bbcode_uid)
}
$message = str_replace(":$bbcode_uid", '', $message);
+ $message = str_replace('<br />', "\n", $message);
$message = preg_replace($match, $replace, $message);
return;