diff options
author | David M <davidmj@users.sourceforge.net> | 2007-03-02 19:24:18 +0000 |
---|---|---|
committer | David M <davidmj@users.sourceforge.net> | 2007-03-02 19:24:18 +0000 |
commit | 1e578bf79a1703d8d43f12d6438ab34627489684 (patch) | |
tree | 7a158bc24144e95c23285289b9b8febc9c733cd7 /phpBB/includes/bbcode.php | |
parent | fed2956ed6badc03f0acf87a8ba724bd850d257d (diff) | |
download | forums-1e578bf79a1703d8d43f12d6438ab34627489684.tar forums-1e578bf79a1703d8d43f12d6438ab34627489684.tar.gz forums-1e578bf79a1703d8d43f12d6438ab34627489684.tar.bz2 forums-1e578bf79a1703d8d43f12d6438ab34627489684.tar.xz forums-1e578bf79a1703d8d43f12d6438ab34627489684.zip |
#8374
git-svn-id: file:///svn/phpbb/trunk@7107 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/bbcode.php')
-rw-r--r-- | phpBB/includes/bbcode.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/bbcode.php b/phpBB/includes/bbcode.php index b7f274ce35..1f4567f1e8 100644 --- a/phpBB/includes/bbcode.php +++ b/phpBB/includes/bbcode.php @@ -176,7 +176,7 @@ class bbcode '[/quote:$uid]' => $this->bbcode_tpl('quote_close', $bbcode_id) ), 'preg' => array( - '#\[quote(?:="(.*?)")?:$uid\](.)#ise' => "\$this->bbcode_second_pass_quote('\$1', '\$2')" + '#\[quote(?:="(.*?)")?:$uid\]((?!\[quote(?:="(.*?)")?:$uid\]).)?#ise' => "\$this->bbcode_second_pass_quote('\$1', '\$2')" ) ); break; @@ -523,9 +523,9 @@ class bbcode $username = str_replace('\"', '"', $username); // remove newline at the beginning - if ($quote[0] == "\n") + if ($quote == "\n") { - $quote = substr($quote, 1); + $quote = ''; } $quote = (($username) ? str_replace('$1', $username, $this->bbcode_tpl('quote_username_open')) : $this->bbcode_tpl('quote_open')) . $quote; |