AWStats icon indicating copy to clipboard operation
AWStats copied to clipboard

Bad arg length for Socket::inet_ntoa

Open ghost opened this issue 6 years ago • 2 comments

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

ghost avatar Jan 22 '19 01:01 ghost

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 ''; }

Rehtael avatar Jan 22 '19 01:01 Rehtael

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

neilgierman avatar Jan 05 '20 20:01 neilgierman