Skip to content

bpo-23328 Allow / character in username,password fields in _PROXY envvars. - #23973

Merged
orsenthil merged 1 commit into
python:masterfrom
orsenthil:issue23328
Dec 29, 2020
Merged

orsenthil merged 1 commit into
python:masterfrom
orsenthil:issue23328

Conversation

@orsenthil

@orsenthil orsenthil commented Dec 28, 2020 •

Copy link
Copy Markdown
Member

bpo-23328 Allow / character in username,password fields in _PROXY envvars.

When urllib was using _parse_proxy method to read proxies from environ variables, if the env had a username, password component and if those had an un-encoded '/' character, the parsing failed.

  • It seems curl allows '/' in unencoded format in username and password fields.

This change will not break any existing parsing behavior and is localized to username,password scenarios with '/' character in them.

https://bugs.python.org/issue23328

@bedevere-bot

Copy link
Copy Markdown

@orsenthil: Please replace # with GH- in the commit message next time. Thanks!

@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @orsenthil for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9.
🐍🍒⛏🤖

@miss-islington

Copy link
Copy Markdown
Contributor

Sorry @orsenthil, I had trouble checking out the 3.9 backport branch.
Please backport using cherry_picker on command line.
cherry_picker 030a713183084594659aefd77b76fe30178e23c8 3.9

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 29, 2020
…honGH-23973)

(cherry picked from commit 030a713)

Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
@bedevere-bot

Copy link
Copy Markdown

GH-23992 is a backport of this pull request to the 3.8 branch.

@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @orsenthil for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 29, 2020
…honGH-23973)

(cherry picked from commit 030a713)

Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
@bedevere-bot

Copy link
Copy Markdown

GH-23993 is a backport of this pull request to the 3.9 branch.

miss-islington added a commit that referenced this pull request Dec 29, 2020
…23973)

(cherry picked from commit 030a713)

Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
orsenthil added a commit that referenced this pull request Dec 29, 2020
…23973) (#23992)

(cherry picked from commit 030a713)

Co-authored-by: Senthil Kumaran <senthil@uthcode.com>
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants