From daaabc21302421653e17dce33e280a0d5e8b8d3a Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 6 May 2020 16:09:32 +0200 Subject: [PATCH] Bug 25279: Replace encodeURI with encodeURIComponent Signed-off-by: Jonathan Druart Signed-off-by: Martin Renvoize --- koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt index c5287fd9b7..e4c7aa5a7d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt @@ -175,7 +175,7 @@ "like": '%[%- city_name_filter | html -%]%' } }; - cities_table_url += 'q='+ encodeURI(JSON.stringify(city_name_filter)); + cities_table_url += 'q='+ encodeURIComponent(JSON.stringify(city_name_filter)); [% END %] var cities_table = $("#table_cities").api({ "ajax": { -- 2.39.5