fix 500 error

pull/83/head
Aevann 2022-12-28 11:28:00 +02:00
parent fdd5069887
commit 5fef411e0c
1 changed files with 4 additions and 0 deletions

View File

@ -838,6 +838,10 @@ def settings_title_change(v):
if v.flairchanged: abort(403)
customtitleplain = sanitize_settings_text(request.values.get("title"), 100)
if len(customtitleplain) > 100:
return render_template("settings/personal.html", v=v, error="Flair too long!")
if customtitleplain == v.customtitleplain:
return render_template("settings/personal.html", v=v, error="You didn't change anything")