]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Fix bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=575545
authoreldy <>
Wed, 4 Aug 2010 12:56:50 +0000 (12:56 +0000)
committereldy <>
Wed, 4 Aug 2010 12:56:50 +0000 (12:56 +0000)
tools/awstats_buildstaticpages.pl
wwwroot/cgi-bin/awstats.pl

index 7118cd7e836f9b263440736f25495457e44753ba..8f131ed789099e672f168f6b4ee210f668b9cdb4 100644 (file)
@@ -196,6 +196,7 @@ sub Parse_Config {
                                warning("Warning: Perl versions before 5.6 cannot handle nested includes");
                                next;
                        }
+            local( *CONFIG_INCLUDE );   # To avoid having parent file closed when include file is closed
                    if ( open( CONFIG_INCLUDE, $includeFile ) ) {
                                &Parse_Config( *CONFIG_INCLUDE , $level+1, $includeFile);
                                close( CONFIG_INCLUDE );
index a7c1244594bae05144a136870187fb8274df4ca8..ddff466b9a0a085e1f5769fdfb7fdaaa5735ad36 100644 (file)
@@ -1859,6 +1859,7 @@ sub Parse_Config {
                                );
                                next;
                        }
+            local( *CONFIG_INCLUDE );   # To avoid having parent file closed when include file is closed
                        if ( open( CONFIG_INCLUDE, $includeFile ) ) {
                                &Parse_Config( *CONFIG_INCLUDE, $level + 1, $includeFile );
                                close(CONFIG_INCLUDE);