From 26ffa2ea4337bea368695b14894b5b3b388589aa Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 22 Nov 2021 15:54:32 +0200 Subject: [PATCH] fd --- files/helpers/sanitize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 64e3e3c47..3d523036e 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -95,7 +95,7 @@ allowed_styles = ['color', 'background-color', 'font-weight', 'transform', '-web def sanitize(sanitized, noimages=False): - sanitized = sanitized.replace("\ufeff", "").replace("m.youtube.com", "youtube.com").replace("𒐪","") + sanitized = sanitized.replace("\ufeff", "").replace("𒐪","") 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")