diff options
author | 6543 <6543@obermui.de> | 2021-08-31 04:22:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-31 04:22:54 +0200 |
commit | 6d97befddf8bfc712d1d38844fa77ff322eb09d0 (patch) | |
tree | f23ff8e7d8a92f4c3cd03e820a494a2654ba9607 | |
parent | 8d7704b5a2f7a0c7425a32bbc875fed15f515b4a (diff) | |
download | gitea-6d97befddf8bfc712d1d38844fa77ff322eb09d0.tar.gz gitea-6d97befddf8bfc712d1d38844fa77ff322eb09d0.zip |
Fix wiki raw commit diff/patch view (#16891)
-rw-r--r-- | routers/web/web.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/web.go b/routers/web/web.go index 98395578f6..a88b66726a 100644 --- a/routers/web/web.go +++ b/routers/web/web.go @@ -895,7 +895,7 @@ func RegisterRoutes(m *web.Route) { m.Get("/_pages", repo.WikiPages) m.Get("/{page}/_revision", repo.WikiRevision) m.Get("/commit/{sha:[a-f0-9]{7,40}}", repo.SetEditorconfigIfExists, repo.SetDiffViewStyle, repo.SetWhitespaceBehavior, repo.Diff) - m.Get("/commit/{sha:[a-f0-9]{7,40}}.{:patch|diff}", repo.RawDiff) + m.Get("/commit/{sha:[a-f0-9]{7,40}}.{ext:patch|diff}", repo.RawDiff) m.Group("", func() { m.Combo("/_new").Get(repo.NewWiki). |