summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-04-05 09:25:57 +0200
committerAleksander Machniak <alec@alec.pl>2014-04-05 09:27:23 +0200
commit7883ecb8ec16108d074f63330b489516c32a3b2f (patch)
treeff0090da5145369a43417a3481ad2fa7fc5e68c6 /program
parent92e81cbf22b78bd06bae8006cd5cda57660838c8 (diff)
Fix again xdebug.max_nesting_level limit handling (#1489110)1.0.0
Diffstat (limited to 'program')
-rw-r--r--program/lib/Roundcube/rcube_washtml.php8
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 '';