From: Laurent Destailleur Date: Tue, 18 Aug 2015 18:41:20 +0000 (+0200) Subject: Compatibility with Perl 5.22 X-Git-Tag: AWSTATS_7_5~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ca56baf8e5819787c128e5ccd741701cb84bfdd;p=thirdparty%2FAWStats.git Compatibility with Perl 5.22 --- diff --git a/docs/awstats_changelog.txt b/docs/awstats_changelog.txt index 1fcca7f7..1b5e3428 100644 --- a/docs/awstats_changelog.txt +++ b/docs/awstats_changelog.txt @@ -8,6 +8,7 @@ New features: option nboflastupdatelookuptosave on command line. - #199 Added geoip6 plugin with support for IPv4 AND IPv6. - Work with Amazon AWS log files (using %time5 tag). +- Compatibility with Perl 5.22 Fixes: - Fixes permission on some .pl scripts. diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index c9dcee9a..eb14fc04 100755 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -9040,12 +9040,12 @@ sub DefinePerlParsingFormat { $LogFormatString =~ s/%>s/%code/g; $LogFormatString =~ s/%b(\s)/%bytesd$1/g; $LogFormatString =~ s/%b$/%bytesd/g; - $LogFormatString =~ s/\"%{Referer}i\"/%refererquot/g; - $LogFormatString =~ s/\"%{User-Agent}i\"/%uaquot/g; - $LogFormatString =~ s/%{mod_gzip_input_size}n/%gzipin/g; - $LogFormatString =~ s/%{mod_gzip_output_size}n/%gzipout/g; - $LogFormatString =~ s/%{mod_gzip_compression_ratio}n/%gzipratio/g; - $LogFormatString =~ s/\(%{ratio}n\)/%deflateratio/g; + $LogFormatString =~ s/\"%\{Referer}i\"/%refererquot/g; + $LogFormatString =~ s/\"%\{User-Agent}i\"/%uaquot/g; + $LogFormatString =~ s/%\{mod_gzip_input_size}n/%gzipin/g; + $LogFormatString =~ s/%\{mod_gzip_output_size}n/%gzipout/g; + $LogFormatString =~ s/%\{mod_gzip_compression_ratio}n/%gzipratio/g; + $LogFormatString =~ s/\(%\{ratio}n\)/%deflateratio/g; # Replacement for a IIS and ISA format string $LogFormatString =~ s/cs-uri-query/%query/g; # Must be before cs-uri