]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
no message
authoreldy <>
Tue, 6 Nov 2001 23:15:16 +0000 (23:15 +0000)
committereldy <>
Tue, 6 Nov 2001 23:15:16 +0000 (23:15 +0000)
wwwroot/cgi-bin/awstats.pl

index d1d8e6b0efe479b983e4d3d7db3660b647d17a9f..b01c3baf76251c4da4eee200806c29b8183c274a 100644 (file)
@@ -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 ($@){