From: eldy <> Date: Wed, 17 Mar 2004 11:35:02 +0000 (+0000) Subject: Fixed: The GET method was not allowed when LogType=S. X-Git-Tag: AWSTATS_6_1_BETA~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7186c4388c3246df2b031e8bfef10abc3498e8ec;p=thirdparty%2FAWStats.git Fixed: The GET method was not allowed when LogType=S. --- diff --git a/docs/awstats_changelog.txt b/docs/awstats_changelog.txt index 6328f96f..0ed3b73c 100644 --- a/docs/awstats_changelog.txt +++ b/docs/awstats_changelog.txt @@ -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 diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index 6b42bc40..9701cec5 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -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)