From cef89f1365e991cd6596f614e108604e8cf17c29 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 8 Nov 2021 14:54:08 +0200 Subject: [PATCH] fdfd --- 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 2d28881b1..6a5f2df7a 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -78,7 +78,7 @@ no_images = ['b', def sanitize_marquee(tag, name, value): if name in allowed_attributes['*'] or name in ['direction', 'behavior', 'scrollamount']: return True - if name in ['width', 'height']: + if name == 'height': try: value = int(value.replace('px', '')) except: return False if 0 < value <= 500: return True