From 06b4494200dff203a4892b3269a064d8721055e3 Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Sat, 11 Nov 2023 22:46:29 +0530 Subject: [PATCH] Fix incorrect sanitisation of search queries on list/campaign frontend. --- frontend/src/views/Campaigns.vue | 2 +- frontend/src/views/Lists.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/Campaigns.vue b/frontend/src/views/Campaigns.vue index 72f5a38f2..aad1d2855 100644 --- a/frontend/src/views/Campaigns.vue +++ b/frontend/src/views/Campaigns.vue @@ -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, }); diff --git a/frontend/src/views/Lists.vue b/frontend/src/views/Lists.vue index c5bc86a83..18c9bbfea 100644 --- a/frontend/src/views/Lists.vue +++ b/frontend/src/views/Lists.vue @@ -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) => {