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 }})

barneygale

Contributor

@barneygale barneygale commented

Nov 12, 2024

edited by bedevere-appbot

Loading

@barneygale

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.

@barneygale

barneygale

@miss-islington-app

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

Nov 14, 2024

@barneygale @miss-islington

…ythonGH-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

@bedevere-app

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Nov 14, 2024

@barneygale @miss-islington

…ythonGH-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

@bedevere-app

barneygale added a commit that referenced this pull request

Nov 14, 2024

@miss-islington @barneygale

…H-126767) (#126836)

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

Nov 14, 2024

@miss-islington @barneygale

…H-126767) (#126837)

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

Dec 8, 2024

@barneygale @picnixz

…ython#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.

ebonnal pushed a commit to ebonnal/cpython that referenced this pull request

Jan 12, 2025

@barneygale @ebonnal

…ython#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.

1 participant

@barneygale