]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] GH-127078: `url2pathname()`: handle extra slash before UNC drive in URL path...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 22 Nov 2024 04:37:51 +0000 (05:37 +0100)
committerGitHub <noreply@github.com>
Fri, 22 Nov 2024 04:37:51 +0000 (04:37 +0000)
commitc470e822bf6b8cde65c61323d0d7892c5df37326
tree8a0c222129815beb90c52f518a4853f97b5f5312
parent4b705f50d1c65536e19048b32397e8118d92558d
[3.12] GH-127078: `url2pathname()`: handle extra slash before UNC drive in URL path (GH-127132) (#127136)

GH-127078: `url2pathname()`: handle extra slash before UNC drive in URL path (GH-127132)

Decode a file URI like `file://///server/share` as a UNC path like
`\\server\share`. This form of file URI is created by software the simply
prepends `file:///` to any absolute Windows path.
(cherry picked from commit 8c98ed846a7d7e50c4cf06f823d94737144dcf6a)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
Lib/nturl2path.py
Lib/test/test_urllib.py
Misc/NEWS.d/next/Library/2024-11-22-03-40-02.gh-issue-127078.gI_PaP.rst [new file with mode: 0644]