Skip to content

Commit

Permalink
json2dict: Prevent converting boolean strings to numerical values
Browse files Browse the repository at this point in the history
  • Loading branch information
zs8wmt authored and bovine committed Jan 19, 2024
1 parent a29ddda commit 1df5594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generic/yajltcl.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ parse2dict_boolean_callback (void *context, int boolean)
{
yajltcl_clientData *yajlData = context;

Tcl_DStringAppendElement (&yajlData->p2dString, boolean ? "1" : "0");
Tcl_DStringAppendElement (&yajlData->p2dString, boolean ? "true" : "false");
return 1;
}

Expand Down

0 comments on commit 1df5594

Please sign in to comment.