diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 484d71941..2d28881b1 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -79,7 +79,7 @@ def sanitize_marquee(tag, name, value): if name in allowed_attributes['*'] or name in ['direction', 'behavior', 'scrollamount']: return True if name in ['width', 'height']: - try: value = int(value) + try: value = int(value.replace('px', '')) except: return False if 0 < value <= 500: return True