forked from MarseyWorld/MarseyWorld
same as last commit
parent
fe2c71ac12
commit
617a29eaa4
|
@ -610,7 +610,7 @@ def allowed_attributes_emojis(tag, name, value):
|
|||
if name == 'src':
|
||||
if '\\' in value: return False
|
||||
if value.startswith('/') : return True
|
||||
if value.startswith(SITE_FULL_IMAGES) : return True
|
||||
if value.startswith(f'{SITE_FULL_IMAGES}/') : return True
|
||||
if name == 'loading' and value == 'lazy': return True
|
||||
if name == 'data-bs-toggle' and value == 'tooltip': return True
|
||||
if name in {'g','glow','t'} and not value: return True
|
||||
|
|
Loading…
Reference in New Issue