Allow up to 8 levels of nested directives, rather than previous 3 in directive infinite loop guard.

master
Joey Hess 2014-02-23 14:11:54 -04:00
parent 5560afc085
commit e0d1c264d9
3 changed files with 5 additions and 1 deletions

View File

@ -1508,7 +1508,7 @@ sub preprocess ($$$;$$) {
push @params, $val, '';
}
}
if ($preprocessing{$page}++ > 3) {
if ($preprocessing{$page}++ > 8) {
# Avoid loops of preprocessed pages preprocessing
# other pages that preprocess them, etc.
return "[[!$command <span class=\"error\">".

2
debian/changelog vendored
View File

@ -5,6 +5,8 @@ ikiwiki (3.20140126) UNRELEASED; urgency=medium
* po: Add html_lang_code and html_lang_dir template variables
for the language code and direction of text.
Thanks, Mesar Hameed
* Allow up to 8 levels of nested directives, rather than previous 3
in directive infinite loop guard.
-- Joey Hess <joeyh@debian.org> Sat, 01 Feb 2014 16:53:35 -0400

View File

@ -19,3 +19,5 @@ index 75c9579..ad0f8b0 100644
[[!tag patch]]
> [[Seems reasonable|users/smcv/yesplease]] --smcv
>> [[done]] --[[Joey]]