Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

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

Kailash Nadh06b4494200df
diff --git a/frontend/src/views/Campaigns.vue b/frontend/src/views/Campaigns.vue
index 72f5a38f..aad1d285 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 c5bc86a8..18c9bbfe 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) => {