raise maximum cid when submitting answers
This commit is contained in:
+1
-1
@@ -284,7 +284,7 @@ def loadJsonAnswer(answer):
|
||||
return JsonResponse({"success": False, "error": "cid or eid or answers not defined"})
|
||||
|
||||
# The model should catch invalid data but this should be less intensive
|
||||
max_int = 10000000
|
||||
max_int = 999999999999999999999
|
||||
if answer["cid"] > max_int or answer["eid"] > max_int:
|
||||
return JsonResponse({"success": False, "error": "invalid cid"})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user