From bb2405aec870974b5799520e8fb61bf56cf4b586 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20H=C3=B8ydahl?= Date: Fri, 14 Dec 2018 15:27:18 +0100 Subject: [PATCH] SOLR-11296: Spellcheck parameters not working in new UI (cherry picked from commit 62edbf2e7da7af6d96d6c912379ee63c80459a70) --- solr/CHANGES.txt | 2 ++ solr/webapp/web/js/angular/services.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index b4bdf373536..34c96246c9f 100644 --- a/solr/CHANGES.txt +++ b/solr/CHANGES.txt @@ -177,6 +177,8 @@ Bug Fixes * SOLR-11296: Spellcheck parameters not working in new UI (Matt Pearce via janhoy) +* SOLR-10975: New Admin UI Query does not URL-encode the query produced in the URL box (janhoy) + Improvements ---------------------- diff --git a/solr/webapp/web/js/angular/services.js b/solr/webapp/web/js/angular/services.js index 8eb148fb3ae..3391221e495 100644 --- a/solr/webapp/web/js/angular/services.js +++ b/solr/webapp/web/js/angular/services.js @@ -235,7 +235,7 @@ solrAdminServices.factory('System', for (key in params) { if (key != "core" && key != "handler") { for (var i in params[key]) { - qs.push(key + "=" + params[key][i]); + qs.push(key + "=" + encodeURIComponent(params[key][i])); } } }