-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6440 from nicolasbock/index_with_git
Protect `@` as safe character when cleaning URLs
- Loading branch information
Showing
3 changed files
with
10 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Fix a regression that caused `@` to be quoted in pypiserver links. | ||
This interfered with parsing the revision string from VCS urls. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -308,7 +308,10 @@ def test_request_retries(caplog): | |
# URL with something that looks like a drive letter, but is | ||
# not. The `:` should be quoted. | ||
("https://localhost.localdomain/T:/path/", | ||
"https://localhost.localdomain/T%3A/path/") | ||
"https://localhost.localdomain/T%3A/path/"), | ||
# VCS URL containing revision string. | ||
("git+ssh://example.com/path to/[email protected]#egg=my-package-1.0", | ||
"git+ssh://example.com/path%20to/[email protected]#egg=my-package-1.0") | ||
] | ||
) | ||
def test_clean_link(url, clean_url): | ||
|