GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — gh-67693: Fix urlunparse() and urlunsplit() for URIs with path starting with multiple slashes and no authority by serhiy-storchaka · Pull Request #113563 · python/cpython Conversation
|
|
It fixes also more serious security issue #67693. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
b54b670 to
26951a7
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The code changes and tests look good to me.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
| ('//path/to/file', | ||
| ('', 'path', '/to/file', '', '', ''), | ||
| ('', 'path', '/to/file', '', '')), | ||
| ('////path/to/file', |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This case was broken.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| ('scheme://path/to/file', | ||
| ('scheme', 'path', '/to/file', '', '', ''), | ||
| ('scheme', 'path', '/to/file', '', '')), | ||
| ('scheme:////path/to/file', |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This case was broken.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| ('file:///tmp/junk.txt', | ||
| ('file', '', '/tmp/junk.txt', '', '', ''), | ||
| ('file', '', '/tmp/junk.txt', '', '')), | ||
| ('file:////tmp/junk.txt', |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This case was broken.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| ('file:////tmp/junk.txt', | ||
| ('file', '', '//tmp/junk.txt', '', '', ''), | ||
| ('file', '', '//tmp/junk.txt', '', '')), | ||
| ('file://///tmp/junk.txt', |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This case was broken.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9, 3.10, 3.11, 3.12, 3.13. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-119026 is a backport of this pull request to the 3.10 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…h path starting with multiple slashes and no authority (pythonGH-113563) (cherry picked from commit e237b25) Co-authored-by: Serhiy Storchaka <[email protected]>
|
GH-119027 is a backport of this pull request to the 3.9 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
… path starting with multiple slashes and no authority (pythonGH-113563) (cherry picked from commit e237b25) Co-authored-by: Serhiy Storchaka <[email protected]>
|
GH-119028 is a backport of this pull request to the 3.8 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…h path starting with multiple slashes and no authority (pythonGH-113563) (cherry picked from commit e237b25) Co-authored-by: Serhiy Storchaka <[email protected]>
… starting with multiple slashes and no authority (GH-113563) (GH-119023) (cherry picked from commit e237b25) Co-authored-by: Serhiy Storchaka <[email protected]>
… starting with multiple slashes and no authority (GH-113563) (GH-119024) (cherry picked from commit e237b25) Co-authored-by: Serhiy Storchaka <[email protected]>
There was a behavioural change to `urllib.parse.urlunparse`[1] that affects some of our tests on Windows. With the understanding that the new behaviour is indeed desired, split up some tests relying on this behaviour depending on the version of Python. The sample URL used to check this behaviour was taken from a test in the upstream change (with the new behaviour this URL will round-trip parsing) [1] python/cpython#113563
There was a behavioural change to `urllib.parse.urlunparse`[1] that affects some of our tests on Windows. With the understanding that the new behaviour is indeed desired, split up some tests relying on this behaviour depending on the version of Python. The sample URL used to check this behaviour was taken from a test in the upstream change (with the new behaviour this URL will round-trip parsing) [1] python/cpython#113563
…starting with multiple slashes and no authority (pythonGH-113563)
…starting with multiple slashes and no authority (GH-113563) (#119028) (cherry picked from commit e237b25) Co-authored-by: Łukasz Langa <[email protected]>
…starting with multiple slashes and no authority (GH-113563) (#119027) (cherry picked from commit e237b25) Co-authored-by: Serhiy Storchaka <[email protected]> Co-authored-by: Łukasz Langa <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.