diff options
author | JoshyPHP <s9e.dev@gmail.com> | 2015-06-27 04:25:54 +0200 |
---|---|---|
committer | JoshyPHP <s9e.dev@gmail.com> | 2015-06-27 04:25:54 +0200 |
commit | ae2237f640c5f08924b01e780d9549dddcb1b7da (patch) | |
tree | 965cdecbf4b25d441def7d1f8e35f23fd849c0dc /phpBB | |
parent | 817db2f13526842e04aeabe4fcd6d809dce2d0a2 (diff) | |
download | forums-ae2237f640c5f08924b01e780d9549dddcb1b7da.tar forums-ae2237f640c5f08924b01e780d9549dddcb1b7da.tar.gz forums-ae2237f640c5f08924b01e780d9549dddcb1b7da.tar.bz2 forums-ae2237f640c5f08924b01e780d9549dddcb1b7da.tar.xz forums-ae2237f640c5f08924b01e780d9549dddcb1b7da.zip |
[ticket/13880] Replaced the quote regexp to allow brackets
This matches the regexp used in bbcode::bbcode_cache_init()
PHPBB3-13880
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/includes/message_parser.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; |