aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorFChannel <=>2021-02-01 23:39:32 -0800
committerFChannel <=>2021-02-01 23:39:32 -0800
commit7df3590fe3cabd7372a739f7f70057c5d9185c23 (patch)
tree902b1df1ca15e9393ef7901fcff6d12416ea0009 /main.go
parent3bedb51f6a878253cfdf10ab89c67312fcd93886 (diff)
changed to base 36 for post ids
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
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++ {