master
Aevann1 2022-04-16 22:16:09 +02:00
parent 2c8fe2adce
commit 5c7c876218
2 changed files with 3 additions and 2 deletions

View File

@ -205,7 +205,7 @@ else:
MOM_ID = 0
DONGER_ID = 0
BUG_THREAD = 0
WELCOME_MSG = f"Welcome to {SITE}!"
WELCOME_MSG = f"Welcome to {SITE_NAME}!"
PUSHER_ID = environ.get("PUSHER_ID", "").strip()
PUSHER_KEY = environ.get("PUSHER_KEY", "").strip()

View File

@ -248,7 +248,8 @@ def sanitize(sanitized, noimages=False, alert=False, comment=False, edit=False):
sanitized = bleach.Cleaner(tags=allowed_tags,
attributes=allowed_attributes,
protocols=['http', 'https'],
styles=['color', 'background-color', 'font-weight', 'text-align']
styles=['color', 'background-color', 'font-weight', 'text-align'],
filters=[partial(LinkifyFilter,skip_tags=["pre"],parse_email=False)]
).clean(sanitized)