master
Aevann1 2021-12-11 01:21:40 +02:00
parent 5e7cf61bd4
commit 1619f9a342
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ allowed_styles = ['color', 'background-color', 'font-weight', 'transform', '-web
def sanitize(sanitized, noimages=False):
sanitized = sanitized.replace("\ufeff", "").replace("𒐪","")
sanitized = sanitized.replace("\ufeff", "").replace("𒐪","").replace("<script>","").replace("</script>","")
for i in re.finditer('https://i\.imgur\.com/(([^_]*?)\.(jpg|png|jpeg))', sanitized):
sanitized = sanitized.replace(i.group(1), i.group(2) + "_d." + i.group(3) + "?maxwidth=9999")