aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorFlorian Kaiser <florian.kaiser@fnkr.net>2016-02-02 17:34:06 +0000
committerFlorian Kaiser <florian.kaiser@fnkr.net>2016-02-02 17:39:56 +0000
commit71bb7f6053c97ff42449c8bdb47a6212bec76ba6 (patch)
tree6c9dc9c69db8ff548131e1fd3638ccc727aa19ea /cmd
parent0255e6a703fc4c735aa3fe74508fcbc2ef283606 (diff)
downloadgitea-71bb7f6053c97ff42449c8bdb47a6212bec76ba6.tar.gz
gitea-71bb7f6053c97ff42449c8bdb47a6212bec76ba6.zip
Escape unescaped periods in route regular expression
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/web.go b/cmd/web.go
index cf47d5c531..383940a049 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -516,7 +516,7 @@ func runWeb(ctx *cli.Context) {
m.Get("/forks", repo.Forks)
}, middleware.RepoRef())
- m.Get("/compare/:before([a-z0-9]{40})...:after([a-z0-9]{40})", repo.CompareDiff)
+ m.Get("/compare/:before([a-z0-9]{40})\\.\\.\\.:after([a-z0-9]{40})", repo.CompareDiff)
}, ignSignIn, middleware.RepoAssignment(), repo.MustBeNotBare)
m.Group("/:username/:reponame", func() {
m.Get("/stars", repo.Stars)