This commit is contained in:
Aevann1 2022-02-23 07:17:03 +02:00
parent 946263d8bc
commit fde6526a56
8 changed files with 12 additions and 12 deletions

View file

@ -89,7 +89,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 ['height', 'width']:
if name in {'height', 'width'}:
try: value = int(value.replace('px', ''))
except: return False
if 0 < value <= 250: return True