master
Aevann1 2021-11-07 23:08:57 +02:00
parent bcf35bf2fd
commit 65efd84a35
1 changed files with 1 additions and 1 deletions

View File

@ -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 allowed_attributes['*'] or name in ['direction', 'behavior', 'scrollamount']: return True
if name in ['width', 'height']: if name in ['width', 'height']:
try: value = int(value) try: value = int(value.replace('px', ''))
except: return False except: return False
if 0 < value <= 500: return True if 0 < value <= 500: return True