master
Aevann1 2021-11-05 16:42:39 +02:00
parent a5f028fb29
commit af86e49b1e
1 changed files with 4 additions and 4 deletions

View File

@ -756,12 +756,12 @@ def ban_user(user_id, v):
if 'form' in request.values:
days = float(request.values.get("days")) if request.values.get('days') else 0
reason = sanitize(request.values.get("reason", ""))[:254]
message = request.values.get("reason", "").strip()[:254]
reason = sanitize(request.values.get("reason", ""))[:256]
message = request.values.get("reason", "").strip()[:256]
else:
days = float(request.values.get("days")) if request.values.get('days') else 0
reason = sanitize(request.values.get("reason", ""))[:254]
message = request.values.get("reason", "").strip()[:254]
reason = sanitize(request.values.get("reason", ""))[:256]
message = request.values.get("reason", "").strip()[:256]
if not user: abort(400)