aboutsummaryrefslogtreecommitdiffstats
path: root/routers/init.go
diff options
context:
space:
mode:
authorKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2017-04-13 04:52:24 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2017-04-13 10:52:24 +0800
commitd409d3ab57894de853bbc5fbacf32628b4d8fa1e (patch)
tree3387b30bad4f0f3fbc740b28cdbf4e23620ce96d /routers/init.go
parent21290d4e80711fb0de8dd101db8c6d1c5171a627 (diff)
downloadgitea-d409d3ab57894de853bbc5fbacf32628b4d8fa1e.tar.gz
gitea-d409d3ab57894de853bbc5fbacf32628b4d8fa1e.zip
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
Diffstat (limited to 'routers/init.go')
-rw-r--r--routers/init.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/init.go b/routers/init.go
index 3b1618a383..dec7f1818f 100644
--- a/routers/init.go
+++ b/routers/init.go
@@ -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)
}