From bbb1b82c5b5bc9c7e9cd96c41aa8339a95e49864 Mon Sep 17 00:00:00 2001 From: FChannel <=> Date: Tue, 23 Feb 2021 19:21:43 -0800 Subject: added fix for special characters in board name, also escaped some characters for regex. might be some missing edge cases --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client.go') diff --git a/client.go b/client.go index f11caae..d31ba07 100644 --- a/client.go +++ b/client.go @@ -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) -- cgit v1.2.3