Fix again xdebug.max_nesting_level limit handling (#1489110)

pull/193/head
Aleksander Machniak 10 years ago
parent adaddf0b18
commit c77a8497e7

@ -283,10 +283,12 @@ class rcube_washtml
/** /**
* The main loop that recurse on a node tree. * The main loop that recurse on a node tree.
* It output only allowed tags with allowed attributes * It output only allowed tags with allowed attributes and allowed inline styles
* 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()) { if (!$node->hasChildNodes()) {
return ''; return '';

Loading…
Cancel
Save