Skip to content

Commit 41442db

Browse files
Potential fix for code scanning alert no. 9: Incomplete string escaping or encoding
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 597e27f commit 41442db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/rpc/src/lib/analytics-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ const validateFilter = (filter: Filter): string | null => {
374374
};
375375

376376
const escapeSqlWildcards = (value: string): string => {
377-
return value.replace(/[%_]/g, '\\$&');
377+
return value.replace(/[%_\\]/g, '\\$&');
378378
};
379379

380380
const buildStringCondition = (

0 commit comments

Comments
 (0)