28 lines
1.1 KiB
Diff
28 lines
1.1 KiB
Diff
|
|
From 27370204dbcb2ee555a136948afee276a96ddc87 Mon Sep 17 00:00:00 2001
|
||
|
|
From: Ben Kallus <49924171+kenballus@users.noreply.github.com>
|
||
|
|
Date: Fri, 3 Feb 2023 08:38:04 -0500
|
||
|
|
Subject: [PATCH] [1.26] Remove "!" character from the "unreserved" characters
|
||
|
|
in IPv6 Zone ID parsing
|
||
|
|
|
||
|
|
Conflict:The content of "index" and "@@" are adapted
|
||
|
|
Reference:https://github.com/urllib3/urllib3/commit/27370204dbcb2ee555a136948afee276a96ddc87
|
||
|
|
---
|
||
|
|
src/urllib3/util/url.py | 2 +-
|
||
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/src/urllib3/util/url.py b/src/urllib3/util/url.py
|
||
|
|
index 63166e8..33dfb45 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")?\]"
|
||
|
|
--
|
||
|
|
2.27.0
|