From a6b421dbf9b6111a5f5ae29f8cb7195296f8e1ca Mon Sep 17 00:00:00 2001 From: dairiki Date: Sat, 18 Aug 2001 01:30:56 +0000 Subject: [PATCH] Fix SF bug #418267. Deeply nested lists resulted in a "Stack bounds exceeded in SetHTMLOutputMode" fatal error. Now we just clamp the nesting depth to 10 (eleven leading '*'s are treated as if there were only ten of them.) git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/branches/release-1_2-branch@537 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/stdlib.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/stdlib.php b/lib/stdlib.php index 71b7613b1..4b20dc3bc 100644 --- a/lib/stdlib.php +++ b/lib/stdlib.php @@ -1,4 +1,4 @@ - 10) { // arbitrarily limit tag nesting - ExitWiki(gettext ("Nesting depth exceeded in SetHTMLOutputMode")); + //ExitWiki(gettext ("Nesting depth exceeded in SetHTMLOutputMode")); + // Now, instead of crapping out when we encounter a deeply + // nested list item, we just clamp the the maximum depth. + $level = 10; } if ($tagtype == ZERO_LEVEL) { -- 2.45.0