forked from MarseyWorld/MarseyWorld
patch exploit that allowed u to post banned domains
parent
6a7fc72e7c
commit
00dc7e66de
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue