From 595d60563a6c240fc89c790d2195c0e1193c2d47 Mon Sep 17 00:00:00 2001 From: "icyphox.sh" Date: Mon, 28 Apr 2025 17:32:04 +0000 Subject: [PATCH] appview: state: url.PathEscape branch names in NewHiddenRef --- appview/state/signer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appview/state/signer.go b/appview/state/signer.go index 8bcfe81e..fc65ec5c 100644 --- a/appview/state/signer.go +++ b/appview/state/signer.go @@ -249,7 +249,7 @@ func (s *SignedClient) NewHiddenRef(ownerDid, targetRepo, forkBranch, remoteBran const ( Method = "POST" ) - endpoint := fmt.Sprintf("/%s/%s/hidden-ref/%s/%s", ownerDid, targetRepo, forkBranch, remoteBranch) + endpoint := fmt.Sprintf("/%s/%s/hidden-ref/%s/%s", ownerDid, targetRepo, url.PathEscape(forkBranch), url.PathEscape(remoteBranch)) req, err := s.newRequest(Method, endpoint, nil) if err != nil { -- 2.51.2