forked from MarseyWorld/MarseyWorld
dffd
parent
d2f950ed81
commit
6f989fb2df
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue