From e1e94683bdc57430b2205ae4b1f1b32e7d0c66e2 Mon Sep 17 00:00:00 2001 From: JoshyPHP Date: Thu, 24 Aug 2017 14:17:42 +0200 Subject: [ticket/15301] Remove quote limits when creating a parser PHPBB3-15301 --- phpBB/phpbb/textformatter/s9e/factory.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'phpBB/phpbb/textformatter/s9e') diff --git a/phpBB/phpbb/textformatter/s9e/factory.php b/phpBB/phpbb/textformatter/s9e/factory.php index 7719ce5afa..81afeafd56 100644 --- a/phpBB/phpbb/textformatter/s9e/factory.php +++ b/phpBB/phpbb/textformatter/s9e/factory.php @@ -273,6 +273,11 @@ class factory implements \phpbb\textformatter\cache_interface { $configurator->BBCodes->addCustom($bbcode['usage'], $bbcode['template']); } + if (isset($configurator->tags['QUOTE'])) + { + // Remove the nesting limit and let other services remove quotes at parsing time + $configurator->tags['QUOTE']->nestingLimit = PHP_INT_MAX; + } // Modify the template to disable images/flash depending on user's settings foreach (array('FLASH', 'IMG') as $name) -- cgit v1.2.1