From b1552de72c0b9be06dadd0932867d91c7bd243e5 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 3 Apr 2025 18:57:04 +0800 Subject: HTML: Repo patch mailing list should not include final slash --- http_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http_server.go b/http_server.go index e234d64..cc5a5f5 100644 --- a/http_server.go +++ b/http_server.go @@ -190,7 +190,7 @@ func (router *forgeHTTPRouter) ServeHTTP(writer http.ResponseWriter, request *ht repoURLRoot = repoURLRoot + url.PathEscape(part) + "/" } params["repo_url_root"] = repoURLRoot - params["repo_patch_mailing_list"] = repoURLRoot[1:] + "@" + config.LMTP.Domain + params["repo_patch_mailing_list"] = repoURLRoot[1:len(repoURLRoot)-1] + "@" + config.LMTP.Domain params["http_clone_url"] = genHTTPRemoteURL(groupPath, moduleName) params["ssh_clone_url"] = genSSHRemoteURL(groupPath, moduleName) -- cgit v1.2.3