[issue43871] urllib.parse.urlparse doesn't check port

Senthil Kumaran report at bugs.python.org
Fri Apr 16 19:24:04 EDT 2021


Senthil Kumaran <senthil at uthcode.com> added the comment:

Treating this as bug in itself might be a better idea than waiting for a ipv6 scope introduction, which had few caveats. 

> Would it be an improvement if _checknetloc[2] validates the value of port properly?

Yes, we could check if it is an int. That should be sufficient.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43871>
_______________________________________


More information about the Python-bugs-list mailing list