Skip to content

Commit

Permalink
Merge pull request advplyr#2129 from mikiher/URI-encoding-2
Browse files Browse the repository at this point in the history
Use encodeURIComponent for text inputs in Match.vue
  • Loading branch information
advplyr authored Sep 20, 2023
2 parents 9967a5d + 6eab985 commit 872fba1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions client/components/modals/item/tabs/Match.vue
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export default {
processing: Boolean,
libraryItem: {
type: Object,
default: () => {}
default: () => { }
}
},
data() {
Expand Down Expand Up @@ -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: {
Expand All @@ -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() {
Expand Down Expand Up @@ -580,6 +580,7 @@ export default {
.matchListWrapper {
height: calc(100% - 124px);
}
@media (min-width: 768px) {
.matchListWrapper {
height: calc(100% - 80px);
Expand Down

0 comments on commit 872fba1

Please sign in to comment.