Skip to content

Commit

Permalink
fix: Fixing incomplete string escaping. (#29772)
Browse files Browse the repository at this point in the history
(cherry picked from commit 2bce20f)
  • Loading branch information
rusackas authored and sadpandajoe committed Nov 13, 2024
1 parent 72df46a commit 0d0b430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset-frontend/src/explore/exploreUtils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ export const getSimpleSQLExpression = (subject, operator, comparator) => {
.map(val => optionLabel(val))
.map(
val =>
`${quote}${isString ? String(val).replace("'", "''") : val}${quote}`,
`${quote}${isString ? String(val).replace(/'/g, "''") : val}${quote}`,
);
if (comparatorArray.length > 0) {
expression += ` ${prefix}${formattedComparators.join(', ')}${suffix}`;
Expand Down

0 comments on commit 0d0b430

Please sign in to comment.