mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-14 05:52:43 +00:00
Sanitation fix from Gogs (#1461)
* Santiation fix from Gogs * Linting * Fix build-errors * still not working * Fix all the things! * gofmt * Add code-injection checks
This commit is contained in:
parent
21290d4e80
commit
d409d3ab57
7 changed files with 118 additions and 27 deletions
|
@ -164,7 +164,7 @@ func Safe(raw string) template.HTML {
|
|||
|
||||
// Str2html render Markdown text to HTML
|
||||
func Str2html(raw string) template.HTML {
|
||||
return template.HTML(markdown.Sanitizer.Sanitize(raw))
|
||||
return template.HTML(markdown.Sanitize(raw))
|
||||
}
|
||||
|
||||
// List traversings the list
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue