Hi,
Since I upgraded to Perl 5.22.0, awstats has been issuing warnings:
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\"%{ <-- HERE Referer}i\"/ at /usr/pkg/awstats/cgi-bin/awstats.pl line 8986.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\"%{ <-- HERE User-Agent}i\"/ at /usr/pkg/awstats/cgi-bin/awstats.pl line 8987.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/%{ <-- HERE mod_gzip_input_size}n/ at /usr/pkg/awstats/cgi-bin/awstats.pl line 8988.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/%{ <-- HERE mod_gzip_output_size}n/ at /usr/pkg/awstats/cgi-bin/awstats.pl line 8989.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/%{ <-- HERE mod_gzip_compression_ratio}n/ at /usr/pkg/awstats/cgi-bin/awstats.pl line 8990.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/(%{ <-- HERE ratio}n)/ at /usr/pkg/awstats/cgi-bin/awstats.pl line 8991.
It's working OK nonetheless.
Modify these lines to add the missing escape:
Like so:
My very limited testing showed no difference in output after adding this modification.
Valrith valrith@users.sf.net écrit :
Works for me, thanks.
This was fixed in commit 6ca56baf8e5819787c128e5ccd741701cb84bfdd and the fix is part of the 7.5 release, AFAICT.
Marius Gedminas mgedmin@users.sf.net écrit :
Then I believe the case can be closed.
Yes, should be fixed with 7.5