fix: remove 3rd party assets from mail (#3569)

This commit is contained in:
Livio Amstutz
2022-05-02 16:41:57 +02:00
committed by GitHub
parent 2e97394246
commit ef6fd5a843
11 changed files with 24 additions and 28 deletions

View File

@@ -1,6 +1,7 @@
package hook
import (
"encoding/base64"
"reflect"
"github.com/mitchellh/mapstructure"
@@ -20,6 +21,6 @@ func Base64ToBytesHookFunc() mapstructure.DecodeHookFuncType {
return data, nil
}
return []byte(data.(string)), nil
return base64.StdEncoding.DecodeString(data.(string))
}
}