From b1552de72c0b9be06dadd0932867d91c7bd243e5 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 03 Apr 2025 18:57:04 +0800 Subject: [PATCH] HTML: Repo patch mailing list should not include final slash --- http_server.go | 2 +- diff --git a/http_server.go b/http_server.go index e234d642badcab3069804a244fb4392f01d9c2a8..cc5a5f54c94db192043c6b085083f9080fd258c4 100644 --- a/http_server.go +++ b/http_server.go @@ -190,7 +190,7 @@ for _, part := range segments[:sepIndex+3] { 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) -- 2.48.1