GH-126766: url2pathname()
: handle empty authority section. by barneygale · Pull Request #126767 · python/cpython (original) (raw)
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation
This file contains hidden or 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
[ Show hidden characters]({{ revealButtonHref }})
Contributor
barneygale commented
•
edited by bedevere-appbot
Loading
Discard two leading slashes from the beginning of a file:
URI if they
introduce an empty authority section. As a result, file URIs like
///etc/hosts
are correctly parsed as /etc/hosts
.
Thanks @barneygale for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request
Discard two leading slashes from the beginning of a file:
URI if they
introduce an empty authority section. As a result, file URIs like
///etc/hosts
are correctly parsed as /etc/hosts
.
(cherry picked from commit cae9d9d)
Co-authored-by: Barney Gale barney.gale@gmail.com
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request
Discard two leading slashes from the beginning of a file:
URI if they
introduce an empty authority section. As a result, file URIs like
///etc/hosts
are correctly parsed as /etc/hosts
.
(cherry picked from commit cae9d9d)
Co-authored-by: Barney Gale barney.gale@gmail.com
barneygale added a commit that referenced this pull request
GH-126766: url2pathname()
: handle empty authority section. (GH-126767)
Discard two leading slashes from the beginning of a file:
URI if they
introduce an empty authority section. As a result, file URIs like
///etc/hosts
are correctly parsed as /etc/hosts
.
(cherry picked from commit cae9d9d)
Co-authored-by: Barney Gale barney.gale@gmail.com
barneygale added a commit that referenced this pull request
GH-126766: url2pathname()
: handle empty authority section. (GH-126767)
Discard two leading slashes from the beginning of a file:
URI if they
introduce an empty authority section. As a result, file URIs like
///etc/hosts
are correctly parsed as /etc/hosts
.
(cherry picked from commit cae9d9d)
Co-authored-by: Barney Gale barney.gale@gmail.com
picnixz pushed a commit to picnixz/cpython that referenced this pull request
Discard two leading slashes from the beginning of a file:
URI if they
introduce an empty authority section. As a result, file URIs like
///etc/hosts
are correctly parsed as /etc/hosts
.
ebonnal pushed a commit to ebonnal/cpython that referenced this pull request
Discard two leading slashes from the beginning of a file:
URI if they
introduce an empty authority section. As a result, file URIs like
///etc/hosts
are correctly parsed as /etc/hosts
.
1 participant