summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2023-02-21 10:22:13 +0800
committerGitHub <noreply@github.com>2023-02-21 10:22:13 +0800
commit34ae184622ba1eee62d73f13db709bc6b646795f (patch)
treeac507e284a0d8ee9d228f62a7a7d1b8ba38ad094 /modules
parent1b950b98cf98c5064bafbd57cd6cde1fa029881b (diff)
downloadgitea-34ae184622ba1eee62d73f13db709bc6b646795f.tar.gz
gitea-34ae184622ba1eee62d73f13db709bc6b646795f.zip
Render access log template as text instead of HTML (#23013)
Fix https://github.com/go-gitea/gitea/pull/22906#discussion_r1112106675
Diffstat (limited to 'modules')
-rw-r--r--modules/context/access_log.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/context/access_log.go b/modules/context/access_log.go
index 84663ee8d3..1aaba9dc2d 100644
--- a/modules/context/access_log.go
+++ b/modules/context/access_log.go
@@ -6,8 +6,8 @@ package context
import (
"bytes"
"context"
- "html/template"
"net/http"
+ "text/template"
"time"
"code.gitea.io/gitea/modules/log"