aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/main.go b/main.go
index f6ed5f0..0ff2854 100644
--- a/main.go
+++ b/main.go
@@ -287,8 +287,8 @@ func main() {
return
}
- if(len(r.FormValue("subject")) > 100 || len(r.FormValue("name")) > 100) {
- w.Write([]byte("Name or Subject limit 100 characters"))
+ if(len(r.FormValue("subject")) > 100 || len(r.FormValue("name")) > 100 || len(r.FormValue("options" > 100) {
+ w.Write([]byte("Name, Subject or Options limit 100 characters"))
return
}
@@ -756,6 +756,11 @@ func main() {
var captcha = r.FormValue("captchaCode") + ":" + r.FormValue("captcha")
+ if len(reason) > 100 {
+ w.Write([]byte("Report comment limit 100 characters"))
+ return
+ }
+
if(!CheckCaptcha(db, captcha)) {
w.WriteHeader(http.StatusBadRequest)
w.Write([]byte("captcha required"))