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

[25/34] lucene-solr:jira/http2: SOLR-10975: New Admin UI Query does not URL-encode the query produced in the URL box

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


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

Branch: refs/heads/jira/http2
Commit: bfd28a8b3a1229978f68e4aa21848290fcfb3559
Parents: f8fcdbb2
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:30:39 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/bfd28a8b/solr/CHANGES.txt
----------------------------------------------------------------------
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index b4bdf37..34c9624 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
 ----------------------
 

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/bfd28a8b/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]));
                    }
                }
            }