Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Netmask NPM package, used by 270k+ projects, vulnerable to octal input data. Parent comment
>>> import ipaddress >>> ipaddress.ip_address('010.0.0.1').is_private True
https://docs.python.org/3.9/library/ipaddress.html#ipaddress...
But this is not an issue:
>>> import ipaddress >>> ipaddress.IPv4Address('010.0.0.1') IPv4Address('10.0.0.1')
https://docs.python.org/3.9/library/ipaddress.html#ipaddress...