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-8596: Web UI doesn't correctly generate queries which include local parameters (Alexandre Rafalovitch, janhoy)
|
||||
|
||||
Optimizations
|
||||
----------------------
|
||||
|
|
|
@ -62,8 +62,12 @@ solrAdminApp.controller('QueryController',
|
|||
var rawParams = $scope.rawParams.split(/[&\n]/);
|
||||
for (var i in rawParams) {
|
||||
var param = rawParams[i];
|
||||
var parts = param.split("=");
|
||||
set(parts[0], parts[1]);
|
||||
var equalPos = param.indexOf("=");
|
||||
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