diff options
author | Jonathan Huot <jonathan.huot@gmail.com> | 2022-09-06 21:56:40 +0200 |
---|---|---|
committer | Jonathan Huot <jonathan.huot@gmail.com> | 2022-09-06 21:56:40 +0200 |
commit | 5d85c61998692643dd9d17e05d2646e06ce391e8 (patch) | |
tree | d8af41a8ee850617f272d6176df6c37398a96b03 /oauthlib/uri_validate.py | |
parent | e514826eea15f2b62bbc13da407b71552ef5ff4c (diff) | |
download | oauthlib-5d85c61998692643dd9d17e05d2646e06ce391e8.tar.gz |
Fix IPV6 regex used to check redirect_uri
Diffstat (limited to 'oauthlib/uri_validate.py')
-rw-r--r-- | oauthlib/uri_validate.py | 2 |
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() |