mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-22 06:00:00 +00:00
[utils] Escape URL while sanitizing
Closes #263 While this fixes the issue in question, it does not try to address the root-cause of the problem Refer:915f911e36
,f5fa042c82
This commit is contained in:
parent
f5fa042c82
commit
d2558234cf
1 changed files with 1 additions and 1 deletions
|
@ -2166,7 +2166,7 @@ def sanitize_url(url):
|
|||
for mistake, fixup in COMMON_TYPOS:
|
||||
if re.match(mistake, url):
|
||||
return re.sub(mistake, fixup, url)
|
||||
return url
|
||||
return escape_url(url)
|
||||
|
||||
|
||||
def sanitized_Request(url, *args, **kwargs):
|
||||
|
|
Loading…
Reference in a new issue