mirror of
https://github.com/kgabis/parson.git
synced 2025-03-13 22:25:31 +00:00
Accepting DEL characters in strings.
DEL characters are allowed according to JSON's specification (http://www.ietf.org/rfc/rfc4627.txt). Thanks to Fulvio Esposito for pointing this out.
This commit is contained in:
parent
c4af3f9583
commit
29595c80ec
3
parson.c
3
parson.c
@ -331,7 +331,8 @@ static const char * get_processed_string(const char **string) {
|
||||
return NULL;
|
||||
break;
|
||||
}
|
||||
} else if (iscntrl((unsigned char)current_char)) { /* no control characters allowed */
|
||||
} else if (iscntrl((unsigned char)current_char) &&
|
||||
((unsigned char)current_char != 0x7F)) { /* no control characters allowed (except DEL)*/
|
||||
parson_free(output);
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user