]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Fixed: The GET method was not allowed when LogType=S.
authoreldy <>
Wed, 17 Mar 2004 11:35:02 +0000 (11:35 +0000)
committereldy <>
Wed, 17 Mar 2004 11:35:02 +0000 (11:35 +0000)
docs/awstats_changelog.txt
wwwroot/cgi-bin/awstats.pl

index 6328f96fb4fabf2c5aeed97408a002a0ecd026f0..0ed3b73c13956be08c32c032c8ad5fcfd916ef5c 100644 (file)
@@ -15,6 +15,7 @@ Fixes:
   %gzip_ratio tag.
 - Fixed old bug showing string "SCALAR(0x8badae4)" inside html reports
   when using mod_perl.
+- Fixed the not allowed GET method when LogType=S.
 - maillogconvert.pl: Better management of error records with sendmail
   and postfix (some "reject" records were discarded).
 - maillogconvert.pl: Fixed important bug where records were discarded
index 6b42bc40885e8f0c2898397b402969d5fb9dfaff..9701cec5d13465e339b6add2a3bfb628948627f0 100644 (file)
@@ -5850,10 +5850,10 @@ if ($UpdateStats && $FrameName ne 'index' && $FrameName ne 'mainleft') {        # Updat
                #---------------------------
                if ($LogType ne 'M') { $field[$pos_url] =~ s/\s/%20/g; }
                if ($LogType eq 'W' && ($field[$pos_method] eq 'GET' || $field[$pos_method] eq 'POST' || $field[$pos_method] eq 'HEAD' || $field[$pos_method] =~ /OK/i || $field[$pos_method] =~ /ERR\!/i)) {
-                       # HTTP request. Keep only GET, POST, HEAD, *OK* and ERR! for Webstar. Do not keep OPTIONS
+                       # HTTP request. Keep only GET, POST, HEAD, *OK* and ERR! for Webstar. Do not keep OPTIONS, TRACE
                }
-               elsif (($LogType eq 'W' || $LogType eq 'S') && ($field[$pos_method] eq 'mms'|| $field[$pos_method] eq 'rtsp' || $field[$pos_method] eq 'http' || $field[$pos_method] eq 'RTP')) {
-                       # Streaming request (windows media server or darwin streaming server)
+               elsif (($LogType eq 'W' || $LogType eq 'S') && ($field[$pos_method] eq 'GET' || $field[$pos_method] eq 'mms' || $field[$pos_method] eq 'rtsp' || $field[$pos_method] eq 'http' || $field[$pos_method] eq 'RTP')) {
+                       # Streaming request (windows media server, realmedia or darwin streaming server)
                }
                elsif ($LogType eq 'M' && $field[$pos_method] eq 'SMTP') {
                        # Mail request ('SMTP' for mail log with maillogconvert.pl preprocessor)