Skip to content

Commit

Permalink
Fix again xdebug.max_nesting_level limit handling (#1489110)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Apr 5, 2014
1 parent 92e81cb commit 7883ecb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions program/lib/Roundcube/rcube_washtml.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,12 @@ private function wash_attribs($node)

/**
* The main loop that recurse on a node tree.
* It output only allowed tags with allowed attributes
* and allowed inline styles
* It output only allowed tags with allowed attributes and allowed inline styles
*
* @param DOMNode $node HTML element
* @param int $level Recurrence level (safe initial value found empirically)
*/
private function dumpHtml($node, $level = 0)
private function dumpHtml($node, $level = 20)
{
if (!$node->hasChildNodes()) {
return '';
Expand Down

0 comments on commit 7883ecb

Please sign in to comment.