diff options
author | Lauris BH <lauris@nix.lv> | 2019-01-30 23:04:19 +0200 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2019-01-30 21:04:19 +0000 |
commit | 80098bd7526fed84cfb4fa48272be71541b37205 (patch) | |
tree | a059983aea63151baa392e1d0a9bfdc320240870 /modules/context/context.go | |
parent | 57a69ef277546414893a38feb70412aa4c32330e (diff) | |
download | gitea-80098bd7526fed84cfb4fa48272be71541b37205.tar.gz gitea-80098bd7526fed84cfb4fa48272be71541b37205.zip |
Fix go-get URL generation (#5905)
Diffstat (limited to 'modules/context/context.go')
-rw-r--r-- | modules/context/context.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/context/context.go b/modules/context/context.go index b9736e56ef..421d1d5f4f 100644 --- a/modules/context/context.go +++ b/modules/context/context.go @@ -209,7 +209,7 @@ func Contexter() macaron.Handler { if err == nil && len(repo.DefaultBranch) > 0 { branchName = repo.DefaultBranch } - prefix := setting.AppURL + path.Join(ownerName, repoName, "src", "branch", branchName) + prefix := setting.AppURL + path.Join(url.QueryEscape(ownerName), url.QueryEscape(repoName), "src", "branch", branchName) c.Header().Set("Content-Type", "text/html") c.WriteHeader(http.StatusOK) c.Write([]byte(com.Expand(`<!doctype html> |