FIX: Encode search terms before creating the search URL

Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
feature/797/interact-with-remote-item
Cyrille Bollu 2019-10-01 22:11:16 +02:00
rodzic a000613e55
commit eca50cd168
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -225,6 +225,7 @@ export default {
})
},
search(term) {
term = encodeURIComponent(term)
this.searchTerm = term
},
resetSearch() {

Wyświetl plik

@ -28,7 +28,7 @@
{{ t('social', 'No results found') }}
</h2>
<p v-if="!loading">
{{ t('social', 'There were no results for your search:') }} {{ term }}
{{ t('social', 'There were no results for your search:') }} {{ decodeURIComponent(term) }}
</p>
</div>
<div v-else>