From ae2237f640c5f08924b01e780d9549dddcb1b7da Mon Sep 17 00:00:00 2001 From: JoshyPHP Date: Sat, 27 Jun 2015 04:25:54 +0200 Subject: [PATCH] [ticket/13880] Replaced the quote regexp to allow brackets This matches the regexp used in bbcode::bbcode_cache_init() PHPBB3-13880 --- phpBB/includes/message_parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/message_parser.php b/phpBB/includes/message_parser.php index 6f462b7a9e..8b3d8d9fd5 100644 --- a/phpBB/includes/message_parser.php +++ b/phpBB/includes/message_parser.php @@ -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;