[core] Handle `/../` sequences in HTTP URLs
authordirkf <fieldhouse@gmx.net>
Mon, 13 Mar 2023 19:45:54 +0000 (19:45 +0000)
committerdirkf <fieldhouse@gmx.net>
Tue, 14 Mar 2023 16:23:20 +0000 (16:23 +0000)
commite8de54bce50f6f77a4d7e8e80675f7003d5bf630
tree44fb3fc30acb05ff99073ee3cfeed37457d541b5
parentbaa6c5e95cb307e7d716645780ff8aef22de6aca
[core] Handle `/../` sequences in HTTP URLs

* use Python's RFC implementation for embedded sequences
* hack: strip unbalanced leading `../` from path, like eg Firefox

See https://github.com/yt-dlp/yt-dlp/issues/3355
youtube_dl/YoutubeDL.py