summaryrefslogtreecommitdiff
path: root/oauthlib/uri_validate.py
diff options
context:
space:
mode:
authorJonathan Huot <jonathan.huot@gmail.com>2022-09-06 21:56:40 +0200
committerJonathan Huot <jonathan.huot@gmail.com>2022-09-06 21:56:40 +0200
commit5d85c61998692643dd9d17e05d2646e06ce391e8 (patch)
treed8af41a8ee850617f272d6176df6c37398a96b03 /oauthlib/uri_validate.py
parente514826eea15f2b62bbc13da407b71552ef5ff4c (diff)
downloadoauthlib-5d85c61998692643dd9d17e05d2646e06ce391e8.tar.gz
Fix IPV6 regex used to check redirect_uri
Diffstat (limited to 'oauthlib/uri_validate.py')
-rw-r--r--oauthlib/uri_validate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/oauthlib/uri_validate.py b/oauthlib/uri_validate.py
index 8a6d9c2..a6fe0fb 100644
--- a/oauthlib/uri_validate.py
+++ b/oauthlib/uri_validate.py
@@ -66,7 +66,7 @@ IPv4address = r"%(dec_octet)s \. %(dec_octet)s \. %(dec_octet)s \. %(dec_octet)s
)
# IPv6address
-IPv6address = r"([A-Fa-f0-9:]+:+)+[A-Fa-f0-9]+"
+IPv6address = r"([A-Fa-f0-9:]+[:$])[A-Fa-f0-9]{1,4}"
# IPvFuture = "v" 1*HEXDIG "." 1*( unreserved / sub-delims / ":" )
IPvFuture = r"v %(HEXDIG)s+ \. (?: %(unreserved)s | %(sub_delims)s | : )+" % locals()