From 6eab985b1ef09ee5dbb256473db0810455a1d577 Mon Sep 17 00:00:00 2001 From: mikiher Date: Wed, 20 Sep 2023 11:25:21 +0000 Subject: [PATCH] Use encodeURIComponent for text inputs --- client/components/modals/item/tabs/Match.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/client/components/modals/item/tabs/Match.vue b/client/components/modals/item/tabs/Match.vue index 58c52df830..0c5d67eba1 100644 --- a/client/components/modals/item/tabs/Match.vue +++ b/client/components/modals/item/tabs/Match.vue @@ -205,7 +205,7 @@ export default { processing: Boolean, libraryItem: { type: Object, - default: () => {} + default: () => { } } }, data() { @@ -305,7 +305,7 @@ export default { const filterData = this.$store.state.libraries.filterData || {} const currentGenres = filterData.genres || [] const selectedMatchGenres = this.selectedMatch.genres || [] - return [...new Set([...currentGenres ,...selectedMatchGenres])] + return [...new Set([...currentGenres, ...selectedMatchGenres])] } }, methods: { @@ -325,9 +325,9 @@ export default { } }, getSearchQuery() { - if (this.isPodcast) return `term=${this.searchTitle}` - var searchQuery = `provider=${this.provider}&fallbackTitleOnly=1&title=${this.searchTitle}` - if (this.searchAuthor) searchQuery += `&author=${this.searchAuthor}` + if (this.isPodcast) return `term=${encodeURIComponent(this.searchTitle)}` + var searchQuery = `provider=${this.provider}&fallbackTitleOnly=1&title=${encodeURIComponent(this.searchTitle)}` + if (this.searchAuthor) searchQuery += `&author=${encodeURIComponent(this.searchAuthor)}` return searchQuery }, submitSearch() { @@ -580,6 +580,7 @@ export default { .matchListWrapper { height: calc(100% - 124px); } + @media (min-width: 768px) { .matchListWrapper { height: calc(100% - 80px);