diff --git a/files/helpers/const.py b/files/helpers/const.py index cbab871db5..3f9c036d87 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -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() diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 1aaa43c966..142036a832 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -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)