We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c45c0f8 + fa2593d commit 6766c52Copy full SHA for 6766c52
1 file changed
src/onelogin/saml2/settings.py
@@ -33,7 +33,7 @@
33
# Released under a BSD 3-Clause License
34
url_regex = re.compile(
35
r'^(?:[a-z0-9\.\-]*)://' # scheme is validated separately
36
- r'(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+(?:[A-Z]{2,6}\.?|[A-Z0-9-]{2,}\.?)|' # domain...
+ r'(?:(?:[A-Z0-9_](?:[A-Z0-9-_]{0,61}[A-Z0-9_])?\.)+(?:[A-Z]{2,6}\.?|[A-Z0-9-]{2,}\.?)|' # domain...
37
r'localhost|' # localhost...
38
r'\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|' # ...or ipv4
39
r'\[?[A-F0-9]*:[A-F0-9:]+\]?)' # ...or ipv6
0 commit comments