Skip to content

Commit

Permalink
Merge pull request phpbb#4885 from JoshyPHP/ticket/15301
Browse files Browse the repository at this point in the history
[ticket/15301] Set quotes' nesting limit when configuring a parser
  • Loading branch information
CHItA committed Sep 9, 2017
2 parents e465af2 + e1e9468 commit 9ebe4da
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions phpBB/phpbb/textformatter/s9e/factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,11 @@ public function get_configurator()
{
$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)
Expand Down

0 comments on commit 9ebe4da

Please sign in to comment.