diff options
author | FChannel <=> | 2021-02-01 23:39:32 -0800 |
---|---|---|
committer | FChannel <=> | 2021-02-01 23:39:32 -0800 |
commit | 7df3590fe3cabd7372a739f7f70057c5d9185c23 (patch) | |
tree | 902b1df1ca15e9393ef7901fcff6d12416ea0009 /main.go | |
parent | 3bedb51f6a878253cfdf10ab89c67312fcd93886 (diff) |
changed to base 36 for post ids
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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++ { |