aboutsummaryrefslogtreecommitdiff
path: root/routes/repo/issue.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2018-09-30 13:55:40 -0400
committerUnknwon <u@gogs.io>2018-09-30 13:55:40 -0400
commita221b2807f0eb46e7ff4fe323af10e9e8c6c18a7 (patch)
treefd013e0bd380dfa135bc2e878d9110e9b042d00f /routes/repo/issue.go
parent0d66b1cc1c8c44c041f5274f967535d62bd371e1 (diff)
routes/repo/issue: fix redirect with unexpected escape (#5443)
Diffstat (limited to 'routes/repo/issue.go')
-rw-r--r--routes/repo/issue.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/repo/issue.go b/routes/repo/issue.go
index 850520e3..67071a44 100644
--- a/routes/repo/issue.go
+++ b/routes/repo/issue.go
@@ -901,7 +901,7 @@ func NewComment(c *context.Context, f form.CreateComment) {
typeName = "pulls"
}
if comment != nil {
- c.Redirect(fmt.Sprintf("%s/%s/%d#%s", c.Repo.RepoLink, typeName, issue.Index, comment.HashTag()))
+ c.RawRedirect(fmt.Sprintf("%s/%s/%d#%s", c.Repo.RepoLink, typeName, issue.Index, comment.HashTag()))
} else {
c.Redirect(fmt.Sprintf("%s/%s/%d", c.Repo.RepoLink, typeName, issue.Index))
}