]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
When a JSON input is a blob, but it looks like valid JSON when cast to text,
authordrh <>
Tue, 23 Jan 2024 13:51:55 +0000 (13:51 +0000)
committerdrh <>
Tue, 23 Jan 2024 13:51:55 +0000 (13:51 +0000)
then accept it as valid JSON.  This replicates a long-standing bug in the
behavior of JSON routines, and thus avoids breaking legacy apps.
[forum:/forumpost/012136abd5292b8d|Forum thread 012136abd5292b8d].

FossilOrigin-Name: e5dc81d5c7ee97866feb688dfa9b6fc225dabff2b020b9b96b49a8fea5640aec

1  2 
manifest
manifest.uuid

diff --cc manifest
index 0080b0dd01b0623f69451c747ee7f6ff9781815d,bd360840cfecac86e66068a0e53d74200c5296bb..b772bd8ddd450942d2adb13005391ad3440eba8b
+++ b/manifest
@@@ -1,5 -1,5 +1,5 @@@
- C Change\sthe\sshell's\s--help\sflag\sto\sexit\swith\scode\s0\sinstead\sof\s1,\sper\s/forum\sand\s/chat\sdiscussions.
- D 2024-01-23T12:51:17.111
 -C Fix\stypo\sin\sthe\stag-20240123-a\sin\sa\scomment.
 -D 2024-01-23T13:28:21.325
++C When\sa\sJSON\sinput\sis\sa\sblob,\sbut\sit\slooks\slike\svalid\sJSON\swhen\scast\sto\stext,\nthen\saccept\sit\sas\svalid\sJSON.\s\sThis\sreplicates\sa\slong-standing\sbug\sin\sthe\nbehavior\sof\sJSON\sroutines,\sand\sthus\savoids\sbreaking\slegacy\sapps.\n[forum:/forumpost/012136abd5292b8d|Forum\sthread\s012136abd5292b8d].
++D 2024-01-23T13:51:55.791
  F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1
  F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea
  F LICENSE.md df5091916dbb40e6e9686186587125e1b2ff51f022cc334e886c19a0e9982724
@@@ -2159,8 -2160,8 +2160,9 @@@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a9
  F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
  F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
  F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
- P 4dc00f577632c7b13135505007804d42a12f81a9ebd58d4c380727256b054b7e
- R 7d04a318d80ba08d1692be25eacaeef6
- U stephan
- Z b8daa0711959586873a5caee05ab1e56
 -P d79a37690ce7ebb91df203170d73511da44546328043c2b3fe1786b2f0087093
 -R daf98ef3cd5515173b41dfefd789b29a
++P df563a18578c5cf1aaecf5818c93967aaa70475598d3c099779622ac8911f926 1f09541eb4203ccce476f6040ff134353850f22f07fb84f96a1d2c27b304a91b
++R 7dbf13a4c43e7e089cdf91f0d441d241
++T +closed 1f09541eb4203ccce476f6040ff134353850f22f07fb84f96a1d2c27b304a91b
+ U drh
 -Z 73f4e47cde19088f6970a061f009bfef
++Z 49b5d29fcb274cc9d83fe4cb64ac5dc9
  # Remove this line to create a well-formed Fossil manifest.
diff --cc manifest.uuid
index eebd6825b5f109f0e95a90fa4f44891dd18f1ed9,60064befb37ab528235f8ea899bb372bd54d8558..88389e6e4102852a7709b484acdeef9d10cdcd7a
@@@ -1,1 -1,1 +1,1 @@@
- df563a18578c5cf1aaecf5818c93967aaa70475598d3c099779622ac8911f926
 -1f09541eb4203ccce476f6040ff134353850f22f07fb84f96a1d2c27b304a91b
++e5dc81d5c7ee97866feb688dfa9b6fc225dabff2b020b9b96b49a8fea5640aec