reset recursion depth on macros to 16

This commit is contained in:
Colin Kuskie 2008-09-30 23:01:51 +00:00
parent 38c42d01fd
commit 45e4a9657c

View file

@ -118,7 +118,7 @@ sub process {
our $macrodepth ||= 0;
local $macrodepth = $macrodepth + 1;
${ $content } =~ s{$macro_re}{
if ( $macrodepth > 64 ) {
if ( $macrodepth > 16 ) {
$session->errorHandler->error($2 . " : Too many levels of macro recursion. Stopping.");
"Too many levels of macro recursion. Stopping.";
}