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.
pull/5/merge
Krzysztof Gabis 12 years ago
parent c4af3f9583
commit 29595c80ec
  1. 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…
Cancel
Save