Ver código fonte

Escape search query in list search. Closes #1471.

Kailash Nadh 1 ano atrás
pai
commit
83c88d73d7
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      frontend/src/views/Lists.vue

+ 1 - 1
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,
+        query: this.queryParams.query.replace(/[^\p{L}\p{N}\s]/gu, ''),
         order_by: this.queryParams.orderBy,
         order: this.queryParams.order,
       }).then((resp) => {