1
0
Fork 0
mirror of https://github.com/Luzifer/sii.git synced 2024-12-21 00:21:15 +00:00

Fix: Strings need quotes

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-12-11 17:17:12 +01:00
parent bb4917d737
commit 5a85cb3d3b
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -157,7 +157,7 @@ func genericMarshal(in interface{}) ([]byte, error) {
case reflect.String:
for _, val := range valField.Interface().([]string) {
values = append(values, val)
values = append(values, fmt.Sprintf("%q", val))
}
buf.Write(encodeSliceValue(attributeName, values))