-
-
Notifications
You must be signed in to change notification settings - Fork 824
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug where a % in a serialized array can lead to the data being br…
…oken It turns out that is a field in a serialized array has a %2 (for example) this gets swapped in executeQuery for the %2 value (in this case srcID - rendering the serialized array invalid. This proposes that we explicitly handle arrays as a data type in compose query. Some thoughts 1) we could make serialized arrays valid types in validate (not done here) 2) we could iterate through the array keys & values escaping them - at this stage it's left in the calling function 3) there are whole bikeshed factories to keep in business on discussion of whether 'Array-1', 'Array-2' etc are the right format
- Loading branch information
1 parent
ae90f9a
commit 3cb0d57
Showing
3 changed files
with
34 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters