From cad30d2363addd0e6bfe4c50139862487fa57cce Mon Sep 17 00:00:00 2001 From: theoborealis <221909172+theoborealis@users.noreply.github.com> Date: Thu, 27 Nov 2025 15:09:34 +0300 Subject: [PATCH] fixed urlencode for repo name in /put --- api/repos.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/api/repos.go b/api/repos.go index ff496f2cd..c5e8b6036 100644 --- a/api/repos.go +++ b/api/repos.go @@ -3,6 +3,7 @@ package api import ( "fmt" "net/http" + "net/url" "os" "path/filepath" "sort" @@ -195,7 +196,11 @@ func apiReposEdit(c *gin.Context) { collectionFactory := context.NewCollectionFactory() collection := collectionFactory.LocalRepoCollection() - name := c.Params.ByName("name") + name, err := url.PathUnescape(c.Params.ByName("name")) + if err != nil { + AbortWithJSONError(c, 400, err) + return + } repo, err := collection.ByName(name) if err != nil { AbortWithJSONError(c, 404, err)