We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea797f8 commit 4c09ccaCopy full SHA for 4c09cca
api/repos.go
@@ -3,6 +3,7 @@ package api
3
import (
4
"fmt"
5
"net/http"
6
+ "net/url"
7
"os"
8
"path/filepath"
9
"sort"
@@ -195,7 +196,11 @@ func apiReposEdit(c *gin.Context) {
195
196
collectionFactory := context.NewCollectionFactory()
197
collection := collectionFactory.LocalRepoCollection()
198
- name := c.Params.ByName("name")
199
+ name, err := url.PathUnescape(c.Params.ByName("name"))
200
+ if err != nil {
201
+ AbortWithJSONError(c, 400, err)
202
+ return
203
+ }
204
repo, err := collection.ByName(name)
205
if err != nil {
206
AbortWithJSONError(c, 404, err)
0 commit comments