]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Fixed bug in SkipHosts filter for mail log files.
authoreldy <>
Sat, 6 Dec 2003 18:49:59 +0000 (18:49 +0000)
committereldy <>
Sat, 6 Dec 2003 18:49:59 +0000 (18:49 +0000)
docs/awstats_changelog.txt
wwwroot/cgi-bin/awstats.pl

index 42ccc1483ce5c7183493fe3d67517cc4ba230e48..f0f54cf2be9aa34c30cfdd2c42b03d677f8a1d39 100644 (file)
@@ -29,6 +29,7 @@ Fixes:
   that match a dropping criteria (SkipFiles, Skip..., Only...).
 - Click on "Summary" now returns to top of page even with rawlog plugin.
 - Fixed AmigaVoyager detection.
+- Fixed bug in SkipHosts filter for mail log files.
 
 New features/improvements:
 - Increased speed by 10 to 20%.
index d9d29304d23e7f8cd4864ba89004089d4220d357..80c9236adc689135839805035f9df9df0cb93625 100644 (file)
@@ -5837,7 +5837,7 @@ if ($UpdateStats && $FrameName ne 'index' && $FrameName ne 'mainleft') {  # Updat
                if ($timerecord > $LastLine) { $LastLine = $timerecord; }       # Test should always be true except with not sorted log files
 
                # Skip for some client host IP addresses, some URLs, other URLs
-               if    (@SkipHosts && (&SkipHost($field[$pos_host]) || ($pos_hostr && &SkipHost($field[$pos_hostr]))))   { $qualifdrop="Dropped record (host $field[$pos_host] not qualified by SkipHosts)"; }
+               if    (@SkipHosts && (&SkipHost($field[$pos_host]) || ($pos_hostr && &SkipHost($field[$pos_hostr]))))   { $qualifdrop="Dropped record (host $field[$pos_host]".($pos_hostr?" and $field[$pos_hostr]":"")." not qualified by SkipHosts)"; }
                elsif (@SkipFiles && &SkipFile($field[$pos_url]))    { $qualifdrop="Dropped record (URL $field[$pos_url] not qualified by SkipFiles)"; }
                elsif (@SkipUserAgents && $pos_agent >= 0 && &SkipUserAgent($field[$pos_agent]))        { $qualifdrop="Dropped record (user agent '$field[$pos_agent]' not qualified by SkipUserAgents)"; }
                elsif (@OnlyHosts && ! &OnlyHost($field[$pos_host]) && (! $pos_hostr || ! &OnlyHost($field[$pos_hostr]))) { $qualifdrop="Dropped record (host $field[$pos_host]".($pos_hostr?" and $field[$pos_hostr]":"")." not qualified by OnlyHosts)"; }