Fix incorrect sanitisation of search queries on list/campaign frontend.
This commit is contained in:
parent
82c74cd544
commit
06b4494200
2 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
});
|
||||
|
|
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue