master
Aevann1 2021-11-09 07:45:12 +02:00
parent d2f950ed81
commit 6f989fb2df
1 changed files with 2 additions and 2 deletions

View File

@ -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