From 6f989fb2df91c38cb85d469bad0931077bee6639 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 9 Nov 2021 07:45:12 +0200 Subject: [PATCH] dffd --- 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 6a5f2df7a..fe07ad3c7 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -78,10 +78,10 @@ no_images = ['b', def sanitize_marquee(tag, name, value): if name in allowed_attributes['*'] or name in ['direction', 'behavior', 'scrollamount']: return True - if name == 'height': + if name in ['height', 'width']: try: value = int(value.replace('px', '')) except: return False - if 0 < value <= 500: return True + if 0 < value <= 250: return True return False