aboutsummaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/utils.py
diff options
context:
space:
mode:
authorpukkandan <[email protected]>2021-04-29 04:56:09 +0530
committerdirkf <[email protected]>2022-06-06 16:03:04 +0100
commit1baa0f5f6678c047624785dc9a3ab3cb44a72809 (patch)
tree589a38f727b2bbd811c0ada5f05af0bc2cb8b06f /youtube_dl/utils.py
parent9aa8e5340f3d5ece372b983f8e399277ca1f1fe4 (diff)
downloadyoutube-dl-1baa0f5f6678c047624785dc9a3ab3cb44a72809.tar.gz
youtube-dl-1baa0f5f6678c047624785dc9a3ab3cb44a72809.zip
[utils] Escape URL while sanitizing
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: 915f911e365736227e134ad654601443dbfd7ccb, f5fa042c82300218a2d07b95dd6b9c0756745db3
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r--youtube_dl/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index 4ff27db3d..8aa2a43a2 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -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):