Commit ab3a6642 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

encode search query parameter

parent ad50a9d6
Pipeline #53109 failed with stage
in 12 minutes and 48 seconds
minerva (16.0.8) stable; urgency=medium
* Bug fix: search with invalid character (like '[') resulted with an error
(#1630)
-- Piotr Gawron <piotr.gawron@uni.lu> Mon, 28 Feb 2022 12:00:00 +0200
minerva (16.0.7) stable; urgency=medium
* Bug fix: vacuum cron job could cause deadlock and starvation of db
connections
......
......@@ -194,9 +194,9 @@ ServerConnector.getNeutralOverlayColorInt = function () {
/**
*
* @param url
* @param description
* @returns {Promise}
* @param {string} url
* @param {string} [description]
* @returns {Promise<string>}
*/
ServerConnector.sendGetRequest = function (url, description) {
return this.sendRequest({
......@@ -2246,13 +2246,21 @@ ServerConnector.logout = function () {
});
};
/**
*
* @param {string} params.query
* @param {string} [params.projectId]
* @param {number} [params.count]
* @param {boolean} params.perfectMatch
* @return {PromiseLike<*[]>}
*/
ServerConnector.getElementsByQuery = function (params) {
var self = this;
var queryParams = {
modelId: params.modelId
};
var filterParams = {
query: params.query,
query: encodeURIComponent(params.query),
perfectMatch: params.perfectMatch
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment