Skip to content
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

Explicit UTF8 json_metadata checks implemented #927

Closed
wants to merge 1 commit into from
Closed

Explicit UTF8 json_metadata checks implemented #927

wants to merge 1 commit into from

Conversation

nemothenoone
Copy link

Closes #926

@mvandeberg
Copy link
Contributor

This PR will not correctly fix the problem. We cannot add another requirement to validate or else it would invalidate bad operations that are already in the blockchain. The added pruning on returning the comment is not needed. The reason we need to do it in the body is because sometimes we substring the body and need to make sure we split on a UTF-8 character boundary. This is not needed for title or category because those fields are never split.

@@ -93,6 +93,7 @@ namespace steemit { namespace protocol {

if( json_metadata.size() > 0 )
{
FC_ASSERT( fc::is_utf8(json_metadata), "JSON Metadata not formatted in UTF8" );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Has to go into an evaluator and only take effect after a hardfork.

@mvandeberg
Copy link
Contributor

#930 usurps this PR

@mvandeberg mvandeberg closed this Mar 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants