Fixed issues with the sanitizie input in text panels, added docs, renamed config option

This commit is contained in:
Torkel Ödegaard
2019-01-22 11:56:35 +01:00
parent 39fa0aec5d
commit f0e61af8e0
8 changed files with 28 additions and 11 deletions
+2 -3
View File
@@ -90,7 +90,6 @@ var (
EmailCodeValidMinutes int
DataProxyWhiteList map[string]bool
DisableBruteForceLoginProtection bool
DisableSanitizeInput bool
// Snapshots
ExternalSnapshotUrl string
@@ -223,7 +222,7 @@ type Cfg struct {
MetricsEndpointBasicAuthUsername string
MetricsEndpointBasicAuthPassword string
EnableAlphaPanels bool
DisableSanitizeInput bool
DisableSanitizeHtml bool
EnterpriseLicensePath string
}
@@ -711,7 +710,7 @@ func (cfg *Cfg) Load(args *CommandLineArgs) error {
panels := iniFile.Section("panels")
cfg.EnableAlphaPanels = panels.Key("enable_alpha").MustBool(false)
cfg.DisableSanitizeInput = panels.Key("sanitize_input_disabled").MustBool(false)
cfg.DisableSanitizeHtml = panels.Key("disable_sanitize_html").MustBool(false)
cfg.readSessionConfig()
cfg.readSmtpSettings()