mirror of
https://github.com/go-gitea/gitea
synced 2025-08-12 12:38:20 +00:00
[backport] fix sanitation (#1646)
* Santiation fix from Gogs - Add code-injection checks * Fix SSH-breakage
This commit is contained in:
committed by
Lunny Xiao
parent
2482c67e2b
commit
473df53533
@@ -49,7 +49,7 @@ func GlobalInit() {
|
||||
|
||||
if setting.InstallLock {
|
||||
highlight.NewContext()
|
||||
markdown.BuildSanitizer()
|
||||
markdown.NewSanitizer()
|
||||
if err := models.NewEngine(); err != nil {
|
||||
log.Fatal(4, "Failed to initialize ORM engine: %v", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user