diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-12-17 22:38:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-17 14:38:54 +0000 |
commit | 20929edc9962281e35a81756d76dd1caa5741ff8 (patch) | |
tree | 138bbb9c97e609136fe83cf6e5524949218d1e72 /routers/web/repo/blame.go | |
parent | 408a4842240e7dd906e682196bd4254d6c76fcb9 (diff) | |
download | gitea-20929edc9962281e35a81756d76dd1caa5741ff8.tar.gz gitea-20929edc9962281e35a81756d76dd1caa5741ff8.zip |
Add option to disable ambiguous unicode characters detection (#28454)
* Close #24483
* Close #28123
* Close #23682
* Close #23149
(maybe more)
Diffstat (limited to 'routers/web/repo/blame.go')
-rw-r--r-- | routers/web/repo/blame.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/routers/web/repo/blame.go b/routers/web/repo/blame.go index db9be51257..b2374e32c2 100644 --- a/routers/web/repo/blame.go +++ b/routers/web/repo/blame.go @@ -315,8 +315,7 @@ func renderBlame(ctx *context.Context, blameParts []git.BlamePart, commitNames m lexerName = lexerNameForLine } - br.EscapeStatus, line = charset.EscapeControlHTML(line, ctx.Locale) - br.Code = gotemplate.HTML(line) + br.EscapeStatus, br.Code = charset.EscapeControlHTML(line, ctx.Locale) rows = append(rows, br) escapeStatus = escapeStatus.Or(br.EscapeStatus) } |