all repos — honk @ 2dc8a9e8a18ca67b02e4a2b79f05c685e8ab3a5d

my fork of honk

namecheck regexp should match whole string
Ted Unangst tedu@tedunangst.com
Sun, 26 Feb 2023 12:08:43 -0500
commit

2dc8a9e8a18ca67b02e4a2b79f05c685e8ab3a5d

parent

9c159d2966f551b29e978896e94f4a6b597bd98f

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M web.goweb.go

@@ -1904,7 +1904,7 @@ combos := strings.TrimSpace(r.FormValue("combos"))

combos = " " + combos + " " honkerid, _ := strconv.ParseInt(r.FormValue("honkerid"), 10, 0) - re_namecheck := regexp.MustCompile("[\\pL[:digit:]_.-]+") + re_namecheck := regexp.MustCompile("^[\\pL[:digit:]_.-]+$") if name != "" && !re_namecheck.MatchString(name) { http.Error(w, "please use a plainer name", http.StatusInternalServerError) return nil