diff --git a/files/routes/admin.py b/files/routes/admin.py
index 6a9b94365b..4be2e85917 100644
--- a/files/routes/admin.py
+++ b/files/routes/admin.py
@@ -850,9 +850,14 @@ def ban_user(user_id, v):
if user.admin_level >= v.admin_level: abort(403)
# check for number of days for suspension
- days = int(request.values.get("days")) if request.values.get('days') else 0
- reason = sanitize(request.values.get("reason", ""))
- message = request.values.get("reason", "")
+ if 'form' in request.values:
+ days = int(request.form.get("days")) if request.form.get('days') else 0
+ reason = sanitize(request.form.get("reason", ""))
+ message = request.form.get("reason", "")
+ else:
+ days = int(request.values.get("days")) if request.values.get('days') else 0
+ reason = sanitize(request.values.get("reason", ""))
+ message = request.values.get("reason", "")
if not user: abort(400)
diff --git a/files/templates/ban_modal.html b/files/templates/ban_modal.html
new file mode 100644
index 0000000000..ac5b2021f9
--- /dev/null
+++ b/files/templates/ban_modal.html
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
+
+
+
for posting:
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/files/templates/comments.html b/files/templates/comments.html
index e4cfe158e5..3d496b4ab0 100644
--- a/files/templates/comments.html
+++ b/files/templates/comments.html
@@ -333,7 +333,7 @@
{% if v and v.admin_level==6 and v.id != c.author_id %}
{% endif %}
{% if v and v.admin_level >=4 and c.oauth_app %}
@@ -492,7 +492,7 @@
{% if v and (c.post and v.admin_level == 6) %}
{% if c.author_id != v.id %}
-