-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sanitizer: update sanitize_uri_value for Python 3.9 urlparse
Use Python 3.9 urlparse scheme parsing behavior for all Python versions Changes: * add utils._parse_uri_scheme to match Python 3.9 urlparse behavior * add utils._is_valid_netloc_and_port with Django URL validator * in test_uri_value_allowed_protocols: * add test case for implicit http for IP and port with path and fragment * add test case for data: scheme * add test case for relative path URI * test "is not allowed by default" test cases against default ALLOWED_PROTOCOLS * convert test_invalid_uri_does_not_raise_error into a test case
- Loading branch information
Greg Guthe
committed
Feb 1, 2021
1 parent
c405b7b
commit 7f4a376
Showing
3 changed files
with
125 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters