From 7623ef68fee9dc357e09b240da937e4f7f5e5ae4 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Wed, 22 Dec 2021 06:01:50 +0000 Subject: [PATCH] Limit sign message length --- apiserver/apiserver/api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apiserver/apiserver/api/views.py b/apiserver/apiserver/api/views.py index 338d5f8..286c9f3 100644 --- a/apiserver/apiserver/api/views.py +++ b/apiserver/apiserver/api/views.py @@ -558,7 +558,7 @@ class StatsViewSet(viewsets.ViewSet, List): @action(detail=False, methods=['post']) def sign(self, request): try: - sign = request.data['sign'] + sign = request.data['sign'][:500] cache.set('sign', sign) if secrets.SIGN_TOKEN: