PLT-6260: Allow empty legal/support links. (#6057)

This commit is contained in:
George Goldberg
2017-04-10 17:16:50 +01:00
committed by Harrison Healey
parent 787dfc9220
commit 9fa4712dd7

View File

@@ -698,7 +698,7 @@ func (o *Config) SetDefaults() {
}
if !IsSafeLink(o.SupportSettings.TermsOfServiceLink) {
o.SupportSettings.TermsOfServiceLink = nil
*o.SupportSettings.TermsOfServiceLink = ""
}
if o.SupportSettings.TermsOfServiceLink == nil {
@@ -707,7 +707,7 @@ func (o *Config) SetDefaults() {
}
if !IsSafeLink(o.SupportSettings.PrivacyPolicyLink) {
o.SupportSettings.PrivacyPolicyLink = nil
*o.SupportSettings.PrivacyPolicyLink = ""
}
if o.SupportSettings.PrivacyPolicyLink == nil {
@@ -716,7 +716,7 @@ func (o *Config) SetDefaults() {
}
if !IsSafeLink(o.SupportSettings.AboutLink) {
o.SupportSettings.AboutLink = nil
*o.SupportSettings.AboutLink = ""
}
if o.SupportSettings.AboutLink == nil {
@@ -725,7 +725,7 @@ func (o *Config) SetDefaults() {
}
if !IsSafeLink(o.SupportSettings.HelpLink) {
o.SupportSettings.HelpLink = nil
*o.SupportSettings.HelpLink = ""
}
if o.SupportSettings.HelpLink == nil {
@@ -734,7 +734,7 @@ func (o *Config) SetDefaults() {
}
if !IsSafeLink(o.SupportSettings.ReportAProblemLink) {
o.SupportSettings.ReportAProblemLink = nil
*o.SupportSettings.ReportAProblemLink = ""
}
if o.SupportSettings.ReportAProblemLink == nil {