]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Fix not working file type detection for default pages.
authoreldy <>
Fri, 12 Sep 2003 12:44:32 +0000 (12:44 +0000)
committereldy <>
Fri, 12 Sep 2003 12:44:32 +0000 (12:44 +0000)
docs/awstats_changelog.txt
wwwroot/cgi-bin/awstats.model.conf
wwwroot/cgi-bin/awstats.pl

index dc764228bb2abb09f512e35e99c290bb75236dc9..649e7e965edd1511569fd60f7d00842ea1726e6d 100644 (file)
@@ -18,6 +18,7 @@ Fixes:
 - Fixed not working timezone plugin with 5.7.
 - Fixed missing propagated configdir parameter when changing month/year.
 - Error when loading database pm file with some cygwin perl version.
+- Fixed not working file type detection for default pages.
 
 New features/improvements:
 - Added %lognamequot tag for LogFormat parameter.\r
index af854d36a843a52822ab6475e9ad44605c249c2d..42e64d1a376c0a8e69657d075027a869e4399d79 100644 (file)
@@ -388,7 +388,7 @@ KeepBackupOfHistoricFiles=0
 
 # Default index page name for your web server.
 # Change : Effective for new updates only
-# Example: "default.htm default.html"
+# Example: "index.php index.html default.html"
 # Default: "index.html"
 #
 DefaultFile="index.html"
index 2b3a914cfd30d3a22b39af014d49ff39abf9627f..37046185e3282e27d32e609f0beed4d7b280981f 100644 (file)
@@ -1191,9 +1191,10 @@ sub Parse_Config {
                        next;
                        }
                if ($param =~ /^DefaultFile/)           {
-                       foreach my $elem (split(/\s+/,$value))  {       # No REGEX for this option
-                               if ($elem =~ /^REGEX\[(.*)\]$/i) { $elem=$1; }
-                               else { $elem='^'.quotemeta($elem).'$'; }
+                       foreach my $elem (split(/\s+/,$value))  {       
+                               # No REGEX for this option
+                               #if ($elem =~ /^REGEX\[(.*)\]$/i) { $elem=$1; }
+                               #else { $elem='^'.quotemeta($elem).'$'; }
                                if ($elem) { push @DefaultFile,$elem; }
                        }
                        next;
@@ -5815,6 +5816,7 @@ if ($UpdateStats && $FrameName ne 'index' && $FrameName ne 'mainleft') {  # Updat
                my $PageBool=1;
                my $extension;
                # Extension
+print "xxx $urlwithnoquery yyy $DefaultFile[0] zzz";
                if ($urlwithnoquery =~ /\.(\w{1,6})$/ || ($urlwithnoquery =~ /[\\\/]$/ && $DefaultFile[0] =~ /\.(\w{1,6})$/)) {
                        $extension=lc($1);
                        if ($NotPageList{$extension}) { $PageBool=0; }