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.
1 parent c3019b9 commit 37edd00Copy full SHA for 37edd00
1 file changed
src/onelogin/saml2/settings.py
@@ -25,7 +25,7 @@
25
# Released under a BSD 3-Clause License
26
url_regex = re.compile(
27
r'^(?:[a-z0-9\.\-]*)://' # scheme is validated separately
28
- 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...
29
r'localhost|' # localhost...
30
r'\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|' # ...or ipv4
31
r'\[?[A-F0-9]*:[A-F0-9:]+\]?)' # ...or ipv6
0 commit comments