From 7df3590fe3cabd7372a739f7f70057c5d9185c23 Mon Sep 17 00:00:00 2001 From: FChannel <=> Date: Mon, 1 Feb 2021 23:39:32 -0800 Subject: changed to base 36 for post ids --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 0bc509e..b81ee86 100644 --- a/main.go +++ b/main.go @@ -778,7 +778,7 @@ func main() { return } - if(r.FormValue("captchaCode") == "" || !CheckCaptcha(db, captcha)) { + if(!CheckCaptcha(db, captcha)) { w.WriteHeader(http.StatusBadRequest) w.Write([]byte("captcha required")) return @@ -966,7 +966,7 @@ func GetContentType(location string) string { func RandomID(size int) string { rand.Seed(time.Now().UnixNano()) - domain := "0123456789ABCDEFG" + domain := "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ" rng := size newID := "" for i := 0; i < rng; i++ { -- cgit v1.2.3