Open kenballus opened 1 year ago
This isn't supposed to work:
import hyperlink hyperlink.URL.from_text("http://example.com:-80")
This patch ensures that only valid port strings are accepted.
(The root cause of this is that port numbers are parsed using int. Both cpython and rfc3986 also had this bug.)
int
Addresses #180
Any update on this? Thanks!
This isn't supposed to work:
This patch ensures that only valid port strings are accepted.
(The root cause of this is that port numbers are parsed using
int
. Both cpython and rfc3986 also had this bug.)