aboutsummaryrefslogtreecommitdiff
path: root/internal/markup/sanitizer.go
diff options
context:
space:
mode:
authorᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-02-22 09:05:26 +0800
committerGitHub <noreply@github.com>2020-02-22 09:05:26 +0800
commit648d9e253c1924b832248f26fee42b2fb64dc3bc (patch)
tree51649fad974cd7284a47d30e412c90e7ab72cd2c /internal/markup/sanitizer.go
parent5b14cc6f0b7b661beb2640a94bd15660cdb48587 (diff)
conf: overhaul server settings (#5928)
* conf: rename package * Requires Go 1.12 * Fix lint * Fix lint * Overhaul * db: fix tests * Save my work * Fix tests * Server.UnixSocketPermission * Server.LocalRootURL * SSH settings * Server.OfflineMode * Save my work * App.Version * Remove [server] STATIC_ROOT_PATH * Server.LandingURL
Diffstat (limited to 'internal/markup/sanitizer.go')
-rw-r--r--internal/markup/sanitizer.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/markup/sanitizer.go b/internal/markup/sanitizer.go
index 981e1c73..4a8f6c28 100644
--- a/internal/markup/sanitizer.go
+++ b/internal/markup/sanitizer.go
@@ -10,7 +10,7 @@ import (
"github.com/microcosm-cc/bluemonday"
"gogs.io/gogs/internal/lazyregexp"
- "gogs.io/gogs/internal/setting"
+ "gogs.io/gogs/internal/conf"
)
// Sanitizer is a protection wrapper of *bluemonday.Policy which does not allow
@@ -40,7 +40,7 @@ func NewSanitizer() {
sanitizer.policy.AllowURLSchemes("data")
// Custom URL-Schemes
- sanitizer.policy.AllowURLSchemes(setting.Markdown.CustomURLSchemes...)
+ sanitizer.policy.AllowURLSchemes(conf.Markdown.CustomURLSchemes...)
})
}