You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ja...@apache.org on 2018/12/14 14:32:12 UTC

lucene-solr:branch_7x: SOLR-10975: New Admin UI Query does not URL-encode the query produced in the URL box

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_7x c5a5ca5a7 -> be826bbf3


SOLR-10975: New Admin UI Query does not URL-encode the query produced in the URL box

(cherry picked from commit bfd28a8b3a1229978f68e4aa21848290fcfb3559)


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/be826bbf
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/be826bbf
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/be826bbf

Branch: refs/heads/branch_7x
Commit: be826bbf367a80a1bc141bf97b33ffe36af18614
Parents: c5a5ca5
Author: Jan Høydahl <ja...@apache.org>
Authored: Fri Dec 14 15:30:39 2018 +0100
Committer: Jan Høydahl <ja...@apache.org>
Committed: Fri Dec 14 15:32:07 2018 +0100

----------------------------------------------------------------------
 solr/CHANGES.txt                       | 2 ++
 solr/webapp/web/js/angular/services.js | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/be826bbf/solr/CHANGES.txt
----------------------------------------------------------------------
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index e6662bc..d7486d4 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -59,6 +59,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
 ----------------------
 

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/be826bbf/solr/webapp/web/js/angular/services.js
----------------------------------------------------------------------
diff --git a/solr/webapp/web/js/angular/services.js b/solr/webapp/web/js/angular/services.js
index 8eb148f..3391221 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]));
                    }
                }
            }