mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-10-01 01:26:10 -04:00
Added double quotes around keys in JSON encoded strings to conform with JSON format.
This commit is contained in:
parent
3fddb9e668
commit
502d313351
@ -122,7 +122,7 @@
|
||||
if (!i.match(/^[a-z0-9]+$/i)) {
|
||||
throw new sjcl.exception.invalid("json encode: invalid property name");
|
||||
}
|
||||
out += comma + i + ':';
|
||||
out += comma + '"' + i + '"' + ':';
|
||||
comma = ',';
|
||||
|
||||
switch (typeof obj[i]) {
|
||||
|
Loading…
Reference in New Issue
Block a user