GH-126766: url2pathname(): handle 'localhost' authority by barneygale · Pull Request #127129 · 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

Conversation3 Commits2 Checks38 Files changed

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 22, 2024

edited by bedevere-appbot

Loading

@barneygale

Discard any 'localhost' authority from the beginning of a file: URI. As a result, file URIs like //localhost/etc/hosts are correctly decoded as /etc/hosts.

@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 22, 2024

@barneygale @miss-islington

…onGH-127129)

Discard any 'localhost' authority from the beginning of a file: URI. As a result, file URIs like //localhost/etc/hosts are correctly decoded as /etc/hosts. (cherry picked from commit ebf564a)

Co-authored-by: Barney Gale barney.gale@gmail.com

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

Nov 22, 2024

@barneygale @miss-islington

…onGH-127129)

Discard any 'localhost' authority from the beginning of a file: URI. As a result, file URIs like //localhost/etc/hosts are correctly decoded as /etc/hosts. (cherry picked from commit ebf564a)

Co-authored-by: Barney Gale barney.gale@gmail.com

@bedevere-app

@bedevere-app

barneygale added a commit that referenced this pull request

Nov 22, 2024

@miss-islington @barneygale

…127129) (#127130)

GH-126766: url2pathname(): handle 'localhost' authority (GH-127129)

Discard any 'localhost' authority from the beginning of a file: URI. As a result, file URIs like //localhost/etc/hosts are correctly decoded as /etc/hosts. (cherry picked from commit ebf564a)

Co-authored-by: Barney Gale barney.gale@gmail.com

barneygale added a commit that referenced this pull request

Nov 22, 2024

@miss-islington @barneygale

…127129) (#127131)

GH-126766: url2pathname(): handle 'localhost' authority (GH-127129)

Discard any 'localhost' authority from the beginning of a file: URI. As a result, file URIs like //localhost/etc/hosts are correctly decoded as /etc/hosts. (cherry picked from commit ebf564a)

Co-authored-by: Barney Gale barney.gale@gmail.com

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

Jan 12, 2025

@barneygale @ebonnal

…on#127129)

Discard any 'localhost' authority from the beginning of a file: URI. As a result, file URIs like //localhost/etc/hosts are correctly decoded as /etc/hosts.

1 participant

@barneygale