patch exploit that allowed u to post banned domains

master
Aevann 2023-05-05 03:17:57 +03:00
parent 6a7fc72e7c
commit 00dc7e66de
1 changed files with 2 additions and 1 deletions

View File

@ -628,7 +628,8 @@ def normalize_url(url):
.replace("https://nitter.net/", "https://twitter.com/") \
.replace("https://nitter.42l.fr/", "https://twitter.com/") \
.replace("https://nitter.lacontrevoie.fr/", "https://twitter.com/") \
.replace("/giphy.gif", "/giphy.webp")
.replace("/giphy.gif", "/giphy.webp") \
.replace("%2e", ".").replace("%2E", ".") \
url = imgur_regex.sub(r'\1_d.webp?maxwidth=9999&fidelity=grand', url)
url = giphy_regex.sub(r'\1.webp', url)