From 8ed0dbe4201a58b00d6f3743178f4cbe5328e2b0 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 6 Mar 2025 15:17:57 +0800 Subject: *: Support subgroups via SQL recursion --- url.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'url.go') diff --git a/url.go b/url.go index d391de2..8be7047 100644 --- a/url.go +++ b/url.go @@ -98,3 +98,10 @@ func redirect_without_slash(w http.ResponseWriter, r *http.Request) bool { } return false } + +func path_escape_cat_segments(segments []string) string { + for i, segment := range segments { + segments[i] = url.PathEscape(segment) + } + return strings.Join(segments, "/") +} -- cgit v1.2.3