SIGN IN SIGN UP

[3.12] GH-126766: `url2pathname()`: handle empty authority section. (GH-126767) (#126837)

GH-126766: `url2pathname()`: handle empty authority section. (GH-126767)

Discard two leading slashes from the beginning of a `file:` URI if they
introduce an empty authority section. As a result, file URIs like
`///etc/hosts` are correctly parsed as `/etc/hosts`.
(cherry picked from commit cae9d9d20f61cdbde0765efa340b6b596c31b67f)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
M
Miss Islington (bot) committed
04f38bb775e998e78bb0cb2747ef57f50f129cb5
Parent: 306db14
Committed by GitHub <noreply@github.com> on 11/14/2024, 11:52:46 PM