mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/13880] Replaced the quote regexp to allow brackets
This matches the regexp used in bbcode::bbcode_cache_init() PHPBB3-13880
This commit is contained in:
parent
817db2f135
commit
ae2237f640
1 changed files with 1 additions and 1 deletions
|
@ -1848,7 +1848,7 @@ class parse_message extends bbcode_firstpass
|
|||
public function remove_nested_quotes($max_depth)
|
||||
{
|
||||
// Capture all [quote] and [/quote] tags
|
||||
preg_match_all('(\\[/?quote(?:=[^]]+)?:' . $this->bbcode_uid . '\\])', $this->message, $matches, PREG_OFFSET_CAPTURE);
|
||||
preg_match_all('(\\[/?quote(?:="(.*?)")?:' . $this->bbcode_uid . '\\])', $this->message, $matches, PREG_OFFSET_CAPTURE);
|
||||
|
||||
// Iterate over the quote tags to mark the ranges that must be removed
|
||||
$depth = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue