Skip to content

Commit

Permalink
Fix incorrect sanitisation of search queries on list/campaign frontend.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Nov 12, 2023
1 parent 82c74cd commit 06b4494
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/views/Campaigns.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/Lists.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 06b4494

Please sign in to comment.