Skip to content

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

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 and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 29, 2020
Merged

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

merged 1 commit into from
Dec 29, 2020

Conversation

orsenthil
Copy link
Member

@orsenthil orsenthil commented Dec 28, 2020

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

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

@miss-islington
Copy link
Contributor

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

@miss-islington
Copy link
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
@bedevere-bot
Copy link

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

@orsenthil orsenthil added needs backport to 3.9 only security fixes and removed needs backport to 3.9 only security fixes labels Dec 29, 2020
@miss-islington
Copy link
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
@bedevere-bot bedevere-bot removed the needs backport to 3.9 only security fixes label Dec 29, 2020
@bedevere-bot
Copy link

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
orsenthil added a commit that referenced this pull request Dec 29, 2020
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants