This commit is contained in:
Aevann1 2022-04-18 01:00:17 +02:00
parent 0ff37f739f
commit 85cf3a092a
3 changed files with 5 additions and 5 deletions

View file

@ -37,7 +37,7 @@ def allowed_attributes(tag, name, value):
if tag == 'img':
if name in ['src','data-src']:
if embed_check_regex.fullmatch(value): return True
if value.startswith('/') or value.startswith(f'{SITE_FULL}/') or embed_check_regex.fullmatch(value): return True
else: return False
if name == 'loading' and value == 'lazy': return True