master
Aevann1 2021-08-31 23:58:25 +02:00
parent e29a02bf11
commit 353b4679d0
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ _allowed_tags = tags = ['b',
'span',
]
noimages = tags = ['b',
no_images = ['b',
'blockquote',
'br',
'code',
@ -125,7 +125,7 @@ def sanitize(sanitized, noimages=False):
sanitized = sanitized.replace(i.group(1), i.group(2) + "_d." + i.group(3) + "?maxwidth=9999")
if noimages:
sanitized = bleach.Cleaner(tags=noimages,
sanitized = bleach.Cleaner(tags=no_images,
attributes=_allowed_attributes,
protocols=_allowed_protocols,
styles=_allowed_styles,