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>
(cherry picked from commit 8fa62be905)
This commit is contained in:
Yarden Shoham 2023-02-21 12:04:57 +02:00 committed by Loïc Dachary
parent b9d5451b8f
commit 2c3a5a89ae
No known key found for this signature in database
GPG key ID: 992D23B392F9E4F2

View file

@ -7,8 +7,8 @@ package context
import (
"bytes"
"context"
"html/template"
"net/http"
"text/template"
"time"
"code.gitea.io/gitea/modules/log"