aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2007-08-16 19:24:32 +0000
committerDavid M <davidmj@users.sourceforge.net>2007-08-16 19:24:32 +0000
commitc09bd8c69f6acc30f581a6cd9136c7c3a7d8f8aa (patch)
treef6e832548c543d8a927ec8374c5462b04a7c23d0 /phpBB/includes
parent521dfdbb059b330e34d11e0fbfa96fbf831d1d20 (diff)
downloadforums-c09bd8c69f6acc30f581a6cd9136c7c3a7d8f8aa.tar
forums-c09bd8c69f6acc30f581a6cd9136c7c3a7d8f8aa.tar.gz
forums-c09bd8c69f6acc30f581a6cd9136c7c3a7d8f8aa.tar.bz2
forums-c09bd8c69f6acc30f581a6cd9136c7c3a7d8f8aa.tar.xz
forums-c09bd8c69f6acc30f581a6cd9136c7c3a7d8f8aa.zip
#14132
git-svn-id: file:///svn/phpbb/trunk@8039 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/message_parser.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/message_parser.php b/phpBB/includes/message_parser.php
index c2d40670af..65ffee8dd0 100644
--- a/phpBB/includes/message_parser.php
+++ b/phpBB/includes/message_parser.php
@@ -426,10 +426,10 @@ class bbcode_firstpass extends bbcode
}
$code = preg_replace('#^<span class="[a-z]+"><span class="([a-z]+)">(.*)</span></span>#s', '<span class="$1">$2</span>', $code);
- $code = preg_replace('#(?:[\n\r\s\t]|&nbsp;)*</span>$#u', '</span>', $code);
+ $code = preg_replace('#(?:\s++|&nbsp;)*+</span>$#u', '</span>', $code);
// remove newline at the end
- if (!empty($code) && $code[strlen($code) - 1] == "\n")
+ if (!empty($code) && substr($code, -1) == "\n")
{
$code = substr($code, 0, -1);
}
@@ -1565,7 +1565,7 @@ class parse_message extends bbcode_firstpass
$poll['poll_option_text'] = $this->parse($poll['enable_bbcode'], ($config['allow_post_links']) ? $poll['enable_urls'] : false, $poll['enable_smilies'], $poll['img_status'], false, false, $config['allow_post_links'], false);
- $this->bbcode_bitfield = base64_encode(base64_decode($bbcode_bitfield) | base64_decode($this->bbcode_bitfield));
+ $bbcode_bitfield = base64_encode(base64_decode($bbcode_bitfield) | base64_decode($this->bbcode_bitfield));
$this->message = $tmp_message;
// Parse Poll Title