Revision 0b66abba1845b5d7b6f847944561580ce42f542b authored by Galen Kistler on 19 October 2022, 13:15:32 UTC, committed by GitHub on 19 October 2022, 13:15:32 UTC
1 parent 05709ce
setting_storage.go
package setting
import (
"gopkg.in/ini.v1"
)
type StorageSettings struct {
AllowUnsanitizedSvgUpload bool
}
func readStorageSettings(iniFile *ini.File) StorageSettings {
s := StorageSettings{}
storageSection := iniFile.Section("storage")
s.AllowUnsanitizedSvgUpload = storageSection.Key("allow_unsanitized_svg_upload").MustBool(false)
return s
}
Computing file changes ...