gh-67693: Fix urlunparse() and urlunsplit() for URIs with path starting with multiple slashes and no authority
It fixes also more serious security issue #67693.
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. 🐍🍒⛏🤖
GH-119023 is a backport of this pull request to the 3.13 branch.
Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.11 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker e237b25a4fa5626fcd1b1848aa03f725f892e40e 3.11
GH-119024 is a backport of this pull request to the 3.12 branch.
Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.10 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker e237b25a4fa5626fcd1b1848aa03f725f892e40e 3.10
Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.9 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker e237b25a4fa5626fcd1b1848aa03f725f892e40e 3.9
Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.8 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker e237b25a4fa5626fcd1b1848aa03f725f892e40e 3.8
GH-119025 is a backport of this pull request to the 3.11 branch.
GH-119026 is a backport of this pull request to the 3.10 branch.
GH-119027 is a backport of this pull request to the 3.9 branch.
GH-119028 is a backport of this pull request to the 3.8 branch.