From: eldy <> Date: Tue, 6 Nov 2001 23:15:16 +0000 (+0000) Subject: no message X-Git-Tag: AWSTATS_1_0~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfe891f95c6ece1e9fd21a3ad47bbfe567d89953;p=thirdparty%2FAWStats.git no message --- diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index d1d8e6b0..b01c3baf 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -82,7 +82,7 @@ $WarningMessages= 1; %MonthBytes = %MonthHits = %MonthHostsKnown = %MonthHostsUnknown = %MonthPages = %MonthUnique = %MonthVisits = %monthlib = %monthnum = (); -$VERSION="3.2 (build 44)"; +$VERSION="3.2 (build 45)"; $Lang="en"; # Default value @@ -1621,6 +1621,11 @@ if ($QueryString =~ /day=/i) { $DayRequired=$QueryString; $DayRequired =~ s/.*da # Print html header &html_head; +# Security check +if ($AllowToUpdateStatsFromBrowser==0 && $UpdateStats) { + error("Error: Update of statistics is not allowed from a browser."); +} + if ($DNSLookup) { # eval { use Sockets; }; # if ($@){