From 0de61672b963d2a254c94ac6291bd036d5381302 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 21 Feb 2023 10:22:13 +0800 Subject: [PATCH] Render access log template as text instead of HTML (#23013) Fix https://github.com/go-gitea/gitea/pull/22906#discussion_r1112106675 --- 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 1a10c4763a818..0560131a38bfe 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"