diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 07f7bdfbb..9e13b39fb 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -95,7 +95,7 @@ def sanitize_marquee(tag, name, value): return False allowed_attributes = { - '*': ['href', 'style', 'src', 'class', 'title', 'loading'], + '*': ['href', 'style', 'src', 'title', 'loading'], 'marquee': sanitize_marquee} allowed_protocols = ['http', 'https'] diff --git a/files/routes/chat.py b/files/routes/chat.py index 000379aeb..0d98dbc0f 100644 --- a/files/routes/chat.py +++ b/files/routes/chat.py @@ -51,11 +51,11 @@ def speak(data, v): data={ "avatar": v.profile_url, - "username":v.username, - "namecolor":v.namecolor, - "text":text, - "text_html":text_html, - "text_censored":censor_slurs(text_html, 'chat') + "username": v.username, + "namecolor": v.namecolor, + "text": text, + "text_html": text_html, + "text_censored": censor_slurs(text_html, 'chat') } if v.shadowbanned: