From c89b314c05a755393b51839260ab681a4ba480db Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 6 Oct 2021 07:40:27 +0200 Subject: [PATCH] gfd --- files/helpers/sanitize.py | 2 +- files/templates/notifications.html | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 9a15a1c19..83fa12eab 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -186,7 +186,7 @@ def sanitize(sanitized, noimages=False): except: pass - if start in sanitized and end in sanitized and start in sanitized.split(end)[0] and end in sanitized.split(start)[1]: sanitized = sanitized.replace(start, '').replace(end, '') + if start in sanitized and end in sanitized and start in sanitized.split(end)[0] and end in sanitized.split(start)[1]: sanitized = sanitized.replace(start, '').replace(end, '') for i in re.finditer("[^a]>\s*(:!?\w+:\s*)+<\/", sanitized): old = i.group(0) diff --git a/files/templates/notifications.html b/files/templates/notifications.html index cf423d7c0..16519e117 100644 --- a/files/templates/notifications.html +++ b/files/templates/notifications.html @@ -16,7 +16,7 @@