Fix incorrect sanitisation of search queries on list/campaign frontend.

This commit is contained in:
Kailash Nadh 2023-11-11 22:46:29 +05:30
parent 82c74cd544
commit 06b4494200
2 changed files with 2 additions and 2 deletions

View file

@ -347,7 +347,7 @@ export default Vue.extend({
getCampaigns() {
this.$api.getCampaigns({
page: this.queryParams.page,
query: this.queryParams.query,
query: this.queryParams.query.replace(/[^\p{L}\p{N}\s]/gu, ' '),
order_by: this.queryParams.orderBy,
order: this.queryParams.order,
});

View file

@ -231,7 +231,7 @@ export default Vue.extend({
getLists() {
this.$api.queryLists({
page: this.queryParams.page,
query: this.queryParams.query.replace(/[^\p{L}\p{N}\s]/gu, ''),
query: this.queryParams.query.replace(/[^\p{L}\p{N}\s]/gu, ' '),
order_by: this.queryParams.orderBy,
order: this.queryParams.order,
}).then((resp) => {