diff --git a/files/routes/chat.py b/files/routes/chat.py index 1140f044d..58684c648 100644 --- a/files/routes/chat.py +++ b/files/routes/chat.py @@ -23,6 +23,7 @@ if SITE in ('pcmemes.net', 'localhost'): @limiter.limit("5/second;30/minute") @auth_required def speak(data, v): + if not data: abort(403) data={ "avatar": v.profile_url, diff --git a/files/templates/chat.html b/files/templates/chat.html index 35cbff2ea..4516835aa 100644 --- a/files/templates/chat.html +++ b/files/templates/chat.html @@ -49,7 +49,7 @@ - +