diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-04-05 09:25:57 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-04-05 09:27:23 +0200 |
commit | 7883ecb8ec16108d074f63330b489516c32a3b2f (patch) | |
tree | ff0090da5145369a43417a3481ad2fa7fc5e68c6 /program/lib/Roundcube/rcube_washtml.php | |
parent | 92e81cbf22b78bd06bae8006cd5cda57660838c8 (diff) |
Fix again xdebug.max_nesting_level limit handling (#1489110)1.0.0
Diffstat (limited to 'program/lib/Roundcube/rcube_washtml.php')
-rw-r--r-- | program/lib/Roundcube/rcube_washtml.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/program/lib/Roundcube/rcube_washtml.php b/program/lib/Roundcube/rcube_washtml.php index 51f7930aa..e9fec54b3 100644 --- a/program/lib/Roundcube/rcube_washtml.php +++ b/program/lib/Roundcube/rcube_washtml.php @@ -283,10 +283,12 @@ class rcube_washtml /** * 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 ''; |