aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoshyPHP <s9e.dev@gmail.com>2017-08-24 14:17:42 +0200
committerJoshyPHP <s9e.dev@gmail.com>2017-08-24 14:17:42 +0200
commite1e94683bdc57430b2205ae4b1f1b32e7d0c66e2 (patch)
tree595e95bbd59db9ef41eb1c79bcca59765e44c2dc
parent1e605efaf126f5474bb1be99e7fdaed834ebb2a0 (diff)
downloadforums-e1e94683bdc57430b2205ae4b1f1b32e7d0c66e2.tar
forums-e1e94683bdc57430b2205ae4b1f1b32e7d0c66e2.tar.gz
forums-e1e94683bdc57430b2205ae4b1f1b32e7d0c66e2.tar.bz2
forums-e1e94683bdc57430b2205ae4b1f1b32e7d0c66e2.tar.xz
forums-e1e94683bdc57430b2205ae4b1f1b32e7d0c66e2.zip
[ticket/15301] Remove quote limits when creating a parser
PHPBB3-15301
-rw-r--r--phpBB/phpbb/textformatter/s9e/factory.php5
1 files changed, 5 insertions, 0 deletions
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)