-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Collections index #153
Collections index #153
Conversation
@@ -189,7 +189,7 @@ func prepareSerializedAccountBalanceHistory( | |||
} | |||
|
|||
id += fmt.Sprintf("-%d", account.Timestamp) | |||
meta := []byte(fmt.Sprintf(`{ "index" : { "_index":"%s", "_id" : "%s" } }%s`, index, id, "\n")) | |||
meta := []byte(fmt.Sprintf(`{ "index" : { "_index":"%s", "_id" : "%s" } }%s`, index, converters.JsonEscape(id), "\n")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since you prepare the ID, sanitizing is not necessary. but it can remain like this in order to avoid programming errors that would generate non readable characters
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly this is an extra protection
ESDTWipe
log in case of an NFT/SFTcollections
that will keep information about a collectionconverters.JsonEscape
everywhere