chore: Reverse sanitize variable so it defaults to false

This commit is contained in:
Johannes Schill
2019-01-22 09:36:07 +01:00
parent 15d560a1c0
commit 1ed35f3dc1
4 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -90,7 +90,7 @@ var (
EmailCodeValidMinutes int
DataProxyWhiteList map[string]bool
DisableBruteForceLoginProtection bool
SanitizeInput bool
DisableSanitizeInput bool
// Snapshots
ExternalSnapshotUrl string
@@ -223,7 +223,7 @@ type Cfg struct {
MetricsEndpointBasicAuthUsername string
MetricsEndpointBasicAuthPassword string
EnableAlphaPanels bool
SanitizeInput bool
DisableSanitizeInput bool
EnterpriseLicensePath string
}
@@ -711,7 +711,7 @@ func (cfg *Cfg) Load(args *CommandLineArgs) error {
panels := iniFile.Section("panels")
cfg.EnableAlphaPanels = panels.Key("enable_alpha").MustBool(false)
cfg.SanitizeInput = panels.Key("sanitize_input").MustBool(true)
cfg.DisableSanitizeInput = panels.Key("sanitize_input_disabled").MustBool(false)
cfg.readSessionConfig()
cfg.readSmtpSettings()