From f700c9c3c8e4e70a8d05f72f62c279c7a8ca2200 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 3 Aug 2021 14:24:56 +0200 Subject: [PATCH] fdfd --- drama/routes/admin.py | 2 +- drama/templates/admin/banned_domains.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drama/routes/admin.py b/drama/routes/admin.py index cffc97b13..27afa823e 100644 --- a/drama/routes/admin.py +++ b/drama/routes/admin.py @@ -957,7 +957,7 @@ def admin_ban_domain(v): domain=request.form.get("domain").strip() if not domain: abort(400) - reason=request.form.get("reason").strip() + reason=request.form.get("reason", "").strip() if not reason: abort(400) d = g.db.query(BannedDomain).filter_by(domain=domain.replace("_","\_")).first() diff --git a/drama/templates/admin/banned_domains.html b/drama/templates/admin/banned_domains.html index 220f70b77..46542db90 100644 --- a/drama/templates/admin/banned_domains.html +++ b/drama/templates/admin/banned_domains.html @@ -30,7 +30,7 @@
- +