From: Laurent Destailleur Date: Fri, 7 Feb 2014 19:12:12 +0000 (+0100) Subject: Fix: #589 GetResolvedIP_ipv6 does not strip trailing dot X-Git-Tag: AWSTATS_7_4~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48e2608321bfe6905fc864352dc7dee6a68a0a2f;p=thirdparty%2FAWStats.git Fix: #589 GetResolvedIP_ipv6 does not strip trailing dot --- diff --git a/docs/awstats_changelog.txt b/docs/awstats_changelog.txt index 78336f30..232b8eca 100644 --- a/docs/awstats_changelog.txt +++ b/docs/awstats_changelog.txt @@ -1,6 +1,14 @@ AWStats Changelog ----------------- +***** 7.4 ***** + +Fixes: +#205 GetResolvedIP_ipv6 does not strip trailing dot +#496 tools scripts should print warnings and errors to STDERR +#919 Referrals not getting tracked due to improperly getting flagged as a search +Fixes permission on some .pl scripts. + ***** 7.3 ***** diff --git a/wwwroot/cgi-bin/plugins/ipv6.pm b/wwwroot/cgi-bin/plugins/ipv6.pm index 743fcc17..14857ee5 100644 --- a/wwwroot/cgi-bin/plugins/ipv6.pm +++ b/wwwroot/cgi-bin/plugins/ipv6.pm @@ -63,6 +63,7 @@ sub GetResolvedIP_ipv6 { my $query = $resolver->query($reverseip, "PTR"); if (! defined($query)) { return; } my @result=split(/\s/, ($query->answer)[0]->string); + chop($result[4]); # Remove the trailing dot of the answer. return $result[4]; # -----> }