diff --git a/files/routes/settings.py b/files/routes/settings.py index e671de5e0..b3e2b84fe 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -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")