mirror of
https://github.com/kgabis/parson.git
synced 2025-02-05 17:05:29 +00:00
ignore only 0x00-0x19 to support utf-8 characters
This commit is contained in:
parent
29595c80ec
commit
cfbf517166
3
parson.c
3
parson.c
@ -331,8 +331,7 @@ static const char * get_processed_string(const char **string) {
|
||||
return NULL;
|
||||
break;
|
||||
}
|
||||
} else if (iscntrl((unsigned char)current_char) &&
|
||||
((unsigned char)current_char != 0x7F)) { /* no control characters allowed (except DEL)*/
|
||||
} else if ((unsigned char)current_char < 0x20) { /* 0x00-0x19 are invalid characters for json string (http://www.ietf.org/rfc/rfc4627.txt) */
|
||||
parson_free(output);
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user