eldy / AWStats

AWStats Log Analyzer project (official sources)
https://www.awstats.org
369 stars 120 forks source link

Bad arg length for Socket::inet_ntoa #121

Open Rehtael opened 5 years ago

Rehtael commented 5 years ago

Bad arg length for Socket::inet_ntoa, length is 0, should be 4 at geoip2_city.pm line 404, <LOG> line 13483.

+Line 396: if ((! $param)||($param eq "-")) { return ''; }

@neilgierman

Rehtael commented 5 years ago

Actually, I think this is better:

if ($param !~ m/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/) { return ''; }

neilgierman commented 4 years ago

Looking back through GeoIP2 issues. Should this issue be closed now?