diff options
author | Cyrille Bollu <cyrpub@bollu.be> | 2019-10-01 22:11:16 +0200 |
---|---|---|
committer | Cyrille Bollu <cyrpub@bollu.be> | 2019-10-02 16:04:29 +0200 |
commit | eca50cd1680d203da5039ffab6edba274532808e (patch) | |
tree | 088b41948f2a365e43e9fd582b634ac4a6d1fa84 /src | |
parent | a000613e55c5959e3c0438fd7a3346e277f3694b (diff) |
FIX: Encode search terms before creating the search URL
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
Diffstat (limited to 'src')
-rw-r--r-- | src/App.vue | 1 | ||||
-rw-r--r-- | src/components/Search.vue | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/App.vue b/src/App.vue index 51287119..8f9fa008 100644 --- a/src/App.vue +++ b/src/App.vue @@ -225,6 +225,7 @@ export default { }) }, search(term) { + term = encodeURIComponent(term) this.searchTerm = term }, resetSearch() { diff --git a/src/components/Search.vue b/src/components/Search.vue index b40ca1f1..a20ea507 100644 --- a/src/components/Search.vue +++ b/src/components/Search.vue @@ -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> |