Skip to content

Commit 2c6ce50

Browse files
committed
added more conditions for search character escaping
1 parent 61bd835 commit 2c6ce50

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apps/webapp/app/presenters/v3/LogsListPresenter.server.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ type ErrorAttributes = {
2828
};
2929

3030
function escapeClickHouseString(val: string): string {
31-
return val.replace(/\//g, "\\/");
31+
return val
32+
.replace(/\//g, "\\/")
33+
.replace(/\\/g, "\\\\")
34+
.replace(/%/g, "\\%")
35+
.replace(/_/g, "\\_");
3236
}
3337

3438

0 commit comments

Comments
 (0)