Skip to content

Commit

Permalink
[utils] Escape URL while sanitizing
Browse files Browse the repository at this point in the history
Closes #31008, #yt-dlp/263

While this fixes the issue in question, it does not try to address the root-cause of the problem
Refer: 915f911, f5fa042
  • Loading branch information
pukkandan authored and dirkf committed Jun 6, 2022
1 parent 9aa8e53 commit 1baa0f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2151,7 +2151,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):
Expand Down

0 comments on commit 1baa0f5

Please sign in to comment.