mirror of https://github.com/apache/lucene.git
SOLR-8596: Split UIs RAW query params only on first equal sign
This commit is contained in:
parent
bc29a3d7ed
commit
c9935b4788
|
@ -165,6 +165,7 @@ Bug Fixes
|
||||||
|
|
||||||
* SOLR-9339: NPE in CloudSolrClient when the response is null (noble)
|
* SOLR-9339: NPE in CloudSolrClient when the response is null (noble)
|
||||||
|
|
||||||
|
* SOLR-8596: Web UI doesn't correctly generate queries which include local parameters (Alexandre Rafalovitch, janhoy)
|
||||||
|
|
||||||
Optimizations
|
Optimizations
|
||||||
----------------------
|
----------------------
|
||||||
|
|
|
@ -61,9 +61,13 @@ solrAdminApp.controller('QueryController',
|
||||||
if ($scope.rawParams) {
|
if ($scope.rawParams) {
|
||||||
var rawParams = $scope.rawParams.split(/[&\n]/);
|
var rawParams = $scope.rawParams.split(/[&\n]/);
|
||||||
for (var i in rawParams) {
|
for (var i in rawParams) {
|
||||||
var param = rawParams[i];
|
var param = rawParams[i];
|
||||||
var parts = param.split("=");
|
var equalPos = param.indexOf("=");
|
||||||
set(parts[0], parts[1]);
|
if (equalPos > -1) {
|
||||||
|
set(param.substring(0, equalPos), param.substring(equalPos+1));
|
||||||
|
} else {
|
||||||
|
set(param, ""); // Use empty value for params without "="
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue