Revision 92f86ec13a618dfb45a30f98ccd4411ff3d16e23 authored by Torkel Ödegaard on 24 August 2022, 07:37:04 UTC, committed by Torkel Ödegaard on 24 August 2022, 07:37:04 UTC
1 parent 95ec3e8
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 ...