Skip to content

Commit

Permalink
[ES|QL] Fixes Incomplete string escaping or encoding error (#193384)
Browse files Browse the repository at this point in the history
## Summary

Closes elastic/kibana-team#1087

I think that this change will close the second problem. Not 100% sure
but this is how I interpret it

(cherry picked from commit 88163b0)
  • Loading branch information
stratoula committed Sep 19, 2024
1 parent 33e06d2 commit 8f290ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kbn-esql-utils/src/utils/append_to_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function appendWhereClauseToESQLQuery(
default:
operator = '==';
}
let filterValue = typeof value === 'string' ? `"${value.replace(/"/g, '\\"')}"` : value;
let filterValue = typeof value === 'string' ? `"${value.replace(/\"/g, '\\"')}"` : value;
// Adding the backticks here are they are needed for special char fields
let fieldName = `\`${field}\``;

Expand Down

0 comments on commit 8f290ae

Please sign in to comment.