From 2c3a5a89aeed66bb4712cb6176eeb2fea00dbc4f Mon Sep 17 00:00:00 2001 From: Yarden Shoham Date: Tue, 21 Feb 2023 12:04:57 +0200 Subject: [PATCH] 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 (cherry picked from commit 8fa62be9059ddbce53e8eb81884d888ec7b741ec) --- modules/context/access_log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"