From eca50cd1680d203da5039ffab6edba274532808e Mon Sep 17 00:00:00 2001 From: Cyrille Bollu Date: Tue, 1 Oct 2019 22:11:16 +0200 Subject: [PATCH] FIX: Encode search terms before creating the search URL Signed-off-by: Cyrille Bollu --- src/App.vue | 1 + src/components/Search.vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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') }}

- {{ t('social', 'There were no results for your search:') }} {{ term }} + {{ t('social', 'There were no results for your search:') }} {{ decodeURIComponent(term) }}