浏览代码

Escape search query in list search. Closes #1471.

Kailash Nadh 1 年之前
父节点
当前提交
83c88d73d7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      frontend/src/views/Lists.vue

+ 1 - 1
frontend/src/views/Lists.vue

@@ -231,7 +231,7 @@ export default Vue.extend({
     getLists() {
     getLists() {
       this.$api.queryLists({
       this.$api.queryLists({
         page: this.queryParams.page,
         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_by: this.queryParams.orderBy,
         order: this.queryParams.order,
         order: this.queryParams.order,
       }).then((resp) => {
       }).then((resp) => {