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 @@