From ead5d604f28056a19dc1daf9b04d69869a14d292 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 24 Feb 2022 05:48:55 +0200 Subject: [PATCH] fds --- files/helpers/sanitize.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 81106c176..4ef3b7442 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -274,9 +274,9 @@ def sanitize(sanitized, noimages=False, alert=False, comment=False, edit=False): sanitized = sanitized.replace(replacing, htmlsource) if not noimages: - for i in re.finditer('>(https://.*?\.(mp4|webm|mov))

', sanitized): + for i in re.finditer('>(https://.*?\.(mp4|webm|mov|MP4|WEBM|MOV))

', sanitized): sanitized = sanitized.replace(f'

{i.group(1)}

', f'

') - for i in re.finditer('

(https:.*?\.(mp4|webm|mov))

', sanitized): + for i in re.finditer('

(https:.*?\.(mp4|webm|mov|MP4|WEBM|MOV))

', sanitized): sanitized = sanitized.replace(i.group(0), f'

') for rd in ["://reddit.com", "://new.reddit.com", "://www.reddit.com", "://redd.it", "://libredd.it"]: