mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
git-svn-id: file:///svn/phpbb/trunk@7107 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user