good morning!!!!

Skip to content
Snippets Groups Projects
Commit df5409c9 authored by Martin Holst Swende's avatar Martin Holst Swende Committed by Guillaume Ballet
Browse files

'sanitize' JSON input


Co-Authored-By: default avatargballet <gballet@gmail.com>
parent 3b3e1bc0
No related branches found
No related tags found
No related merge requests found
......@@ -136,7 +136,7 @@ func (path DerivationPath) String() string {
}
func (path DerivationPath) MarshalJSON() ([]byte, error) {
return []byte(fmt.Sprintf("\"%s\"", path.String())), nil
return json.Marshal(fmt.Sprintf("\"%s\"", path.String()))
}
func (path *DerivationPath) UnmarshalJSON(b []byte) error {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment