diff options
author | FChannel <=> | 2021-02-23 19:21:43 -0800 |
---|---|---|
committer | FChannel <=> | 2021-02-23 19:21:43 -0800 |
commit | bbb1b82c5b5bc9c7e9cd96c41aa8339a95e49864 (patch) | |
tree | 74b4a5277a2a5fd4da7565777efafec2db0d53b1 /client.go | |
parent | 28e256f18f96d9afdcb903b3bc3daf93747c2195 (diff) |
added fix for special characters in board name, also escaped some characters for regex. might be some missing edge cases
Diffstat (limited to 'client.go')
-rw-r--r-- | client.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -210,7 +210,7 @@ func PostGet(w http.ResponseWriter, r *http.Request, db *sql.DB){ returnData.Boards = Boards - re = regexp.MustCompile("f\\w+-\\w+") + re = regexp.MustCompile("f(\\w|[!@#$%^&*<>])+-(\\w|[!@#$%^&*<>])+") if re.MatchString(path) { // if non local actor post name := GetActorFollowNameFromPath(path) |