commit 67bee3b8b2e6eb50c1fab78babdd89b208e7b5f6
parent 3decd37d3f9c65980fe1805bc6975f95a543b2f5
Author: knutsen <samuel@knutsen.co>
Date: Tue, 8 Jun 2021 22:56:45 +0100
Import re
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/shiimoe.py b/shiimoe.py
@@ -9,6 +9,7 @@ import bleach
from datetime import datetime
from os import path
import json
+import re
app = Flask(__name__, static_url_path="", static_folder="./")
md = markdown.Markdown(
@@ -88,7 +89,7 @@ def postcomment():
return err("Please provide a name and comment.")
# Spam filtering!!
- if len(name) > 130:
+ if len(name) > 110:
return err("You're taking the piss with a name that long mate.")
if len(comment) > 850:
return err("No more than 850 characters!")