forked from MarseyWorld/MarseyWorld
dfs
parent
2c8fe2adce
commit
5c7c876218
|
@ -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()
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue