mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-27 20:41:58 +03:00
Fix a regression caused by the fix for ticket [6c9b5514077fed34551f98e64c09a1] -
control characters allowed in JSON. FossilOrigin-Name: 8e7b611863247a3bf46a96ec4b47d24c0ae0d60c9cee968a1cfd1da157e7c9bb
This commit is contained in:
@ -801,7 +801,10 @@ static int jsonParseValue(JsonParse *pParse, u32 i){
|
||||
j = i+1;
|
||||
for(;;){
|
||||
c = z[j];
|
||||
if( c<=0x1f ) return -1; /* Control characters not allowed in strings */
|
||||
if( (c & ~0x1f)==0 ){
|
||||
/* Control characters are not allowed in strings */
|
||||
return -1;
|
||||
}
|
||||
if( c=='\\' ){
|
||||
c = z[++j];
|
||||
if( c=='"' || c=='\\' || c=='/' || c=='b' || c=='f'
|
||||
|
Reference in New Issue
Block a user