-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix redirections to URLS with host given as IP-litteral (#1192)
When redirecting to an URL with an IPv6 host with surrounding brackets, we should not escape the surrounding brackets. The patch updates referenced RFC from 2396 to 3986, which obsoletes it and change the safe characters for the netloc part to allow [ and ]. The RFC specifies that [ and ] are only allowed when they are the first and last characters, but we don't need to be more specific here, because using [ or ] in other places of the host is rejected by urlparse above. Fixes #1191
- Loading branch information
1 parent
1874591
commit 0ef9d15
Showing
3 changed files
with
16 additions
and
9 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