summaryrefslogtreecommitdiffstats
path: root/Lib/urllib/error.py
diff options
context:
space:
mode:
authorBen Kallus <49924171+kenballus@users.noreply.github.com>2022-11-13 18:25:55 (GMT)
committerGitHub <noreply@github.com>2022-11-13 18:25:55 (GMT)
commit439b9cfaf43080e91c4ad69f312f21fa098befc7 (patch)
tree307fe4dc0c0d7fbdc8c9bc856c36b96d06bdff4c /Lib/urllib/error.py
parent50b0415127009119882e32377d25a4d191088a76 (diff)
downloadcpython-439b9cfaf43080e91c4ad69f312f21fa098befc7.zip
cpython-439b9cfaf43080e91c4ad69f312f21fa098befc7.tar.gz
cpython-439b9cfaf43080e91c4ad69f312f21fa098befc7.tar.bz2
gh-99418: Make urllib.parse.urlparse enforce that a scheme must begin with an alphabetical ASCII character. (#99421)
Prevent urllib.parse.urlparse from accepting schemes that don't begin with an alphabetical ASCII character. RFC 3986 defines a scheme like this: `scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )` RFC 2234 defines an ALPHA like this: `ALPHA = %x41-5A / %x61-7A` The WHATWG URL spec defines a scheme like this: `"A URL-scheme string must be one ASCII alpha, followed by zero or more of ASCII alphanumeric, U+002B (+), U+002D (-), and U+002E (.)."`
Diffstat (limited to 'Lib/urllib/error.py')
0 files changed, 0 insertions, 0 deletions