diff --git a/api/repos.go b/api/repos.go index 1d6dfae3..53c1c16b 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" @@ -204,7 +205,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)