-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The issue lies on the fact that a binary MySQL string (`x"..."`) appears before a regular MySQL string (`"..."`). This trips the sanitiser, which recognises the leading `x` as a literal value type indicator. After the literal value type indicator state is over, the sanitiser forgets that it's inside a VALUES statement. Fix this by keeping track of a "context state" to return to after certain state transitions, instead of always returning to the default state. Co-authored-by: Luismi Ramirez <luismi@appsignal.com>
- Loading branch information
1 parent
5d66bdf
commit ff3de0e
Showing
1 changed file
with
14 additions
and
4 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