[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
pull/289/head
pukkandan 2021-04-29 04:56:09 +05:30
rodzic f5fa042c82
commit d2558234cf
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0F00D95A001F4698
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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):