diff options
author | Ben Kallus <49924171+kenballus@users.noreply.github.com> | 2023-02-03 08:38:04 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-03 07:38:04 -0600 |
commit | 27370204dbcb2ee555a136948afee276a96ddc87 (patch) | |
tree | 0d0efe5a6b198eff7a6a717fdc951e0dd0fa3f00 | |
parent | a7ce8e0881c94800b14687145ee11940246d2b22 (diff) | |
download | urllib3-27370204dbcb2ee555a136948afee276a96ddc87.tar.gz |
[1.26] Remove "!" character from the "unreserved" characters in IPv6 Zone ID parsing
-rw-r--r-- | src/urllib3/util/url.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/urllib3/util/url.py b/src/urllib3/util/url.py index 3a169a43..a65aae6f 100644 --- a/src/urllib3/util/url.py +++ b/src/urllib3/util/url.py @@ -50,7 +50,7 @@ _variations = [ "(?:(?:%(hex)s:){0,6}%(hex)s)?::", ] -UNRESERVED_PAT = r"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._!\-~" +UNRESERVED_PAT = r"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._\-~" IPV6_PAT = "(?:" + "|".join([x % _subs for x in _variations]) + ")" ZONE_ID_PAT = "(?:%25|%)(?:[" + UNRESERVED_PAT + "]|%[a-fA-F0-9]{2})+" IPV6_ADDRZ_PAT = r"\[" + IPV6_PAT + r"(?:" + ZONE_ID_PAT + r")?\]" |