Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.

Commit 0de2824

Browse files
Ghislain BeaulacGhislain Beaulac
authored andcommitted
GraphQL Service should escape slashes
1 parent 0a6f2e5 commit 0de2824

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/modules/angular-slickgrid/services/graphql.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ export class GraphqlService implements BackendService {
6464
queryQb.find(datasetQb);
6565

6666
const enumSearchProperties = ['direction:', 'field:', 'operator:'];
67-
return this.trimDoubleQuotesOnEnumField(queryQb.toString(), enumSearchProperties);
67+
const output = this.trimDoubleQuotesOnEnumField(queryQb.toString(), enumSearchProperties);
68+
return output.replace('\\', '\\\\').replace('\/', '\/\/'); // also escape slashes
6869
}
6970

7071
/**

0 commit comments

Comments
 (0)