diff options
author | drh <> | 2023-04-27 16:24:12 +0000 |
---|---|---|
committer | drh <> | 2023-04-27 16:24:12 +0000 |
commit | dbcea23976955b2aa36ca9eb92b0fe5315ef7665 (patch) | |
tree | 2aa0159c6ab58911842435ef52b5a43090df3464 /src | |
parent | 13f8a80d944a26a35d4cb9dbbfda50eff963502d (diff) | |
download | sqlite-dbcea23976955b2aa36ca9eb92b0fe5315ef7665.tar.gz sqlite-dbcea23976955b2aa36ca9eb92b0fe5315ef7665.zip |
Fix the handling of escape solidus in the JSON routines.
FossilOrigin-Name: 676877aca235e620ee12d10235dd6ad009d4968455ec170daeb1998b94a7e0a2
Diffstat (limited to 'src')
-rw-r--r-- | src/json.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/json.c b/src/json.c index e446830db..e508209fc 100644 --- a/src/json.c +++ b/src/json.c @@ -802,10 +802,8 @@ static void jsonReturn( c = '\t'; }else if( c=='v' ){ c = '\v'; - }else if( c=='\'' ){ - c = '\''; - }else if( c=='"' ){ - c = '"'; + }else if( c=='\'' || c=='"' || c=='/' ){ + /* pass through unchanged */ }else if( c=='0' ){ c = 0; }else if( c=='x' ){ |