aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYarden Shoham <hrsi88@gmail.com>2023-02-21 12:04:57 +0200
committerGitHub <noreply@github.com>2023-02-21 18:04:57 +0800
commit8fa62be9059ddbce53e8eb81884d888ec7b741ec (patch)
treebc9c799f3c939758aa51758a5eebdf06fce30d43
parent7b3ffe5745152513468adbeaae1102a27c30b67b (diff)
downloadgitea-8fa62be9059ddbce53e8eb81884d888ec7b741ec.tar.gz
gitea-8fa62be9059ddbce53e8eb81884d888ec7b741ec.zip
Render access log template as text instead of HTML (#23013) (#23025)
Backport #23013 Fix https://github.com/go-gitea/gitea/pull/22906#discussion_r1112106675 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
-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 1a10c4763a..0560131a38 100644
--- a/modules/context/access_log.go
+++ b/modules/context/access_log.go
@@ -7,8 +7,8 @@ package context
import (
"bytes"
"context"
- "html/template"
"net/http"
+ "text/template"
"time"
"code.gitea.io/gitea/modules/log"