diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 7e221c7ff7..415fa29c1c 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -218,6 +218,8 @@ def sanitize(sanitized, noimages=False): sanitized = sanitized.replace(replacing, htmlsource) for i in re.finditer('>(https://.*?\.(mp4|webm|mov))
', sanitized): sanitized = sanitized.replace(f'', f'') + for i in re.finditer('
(https:.*?\.(mp4|webm))
', sanitized): + sanitized = sanitized.replace(i.group(0), f'') for rd in ["https://reddit.com/", "https://new.reddit.com/", "https://www.reddit.com/", "https://redd.it/"]: sanitized = sanitized.replace(rd, "https://old.reddit.com/")