fix: [restClient] Make sure to split value on strings

Fix #7032
pull/7038/head
mokaddem 2021-02-19 09:00:45 +01:00
parent 0e2e5bdbe1
commit 8d9d0e6411
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ class AppController extends Controller
public $helpers = array('OrgImg', 'FontAwesome', 'UserName', 'DataPathCollector');
private $__queryVersion = '125';
private $__queryVersion = '126';
public $pyMispVersion = '2.4.138';
public $phpmin = '7.2';
public $phprec = '7.4';

View File

@ -466,7 +466,7 @@ function findPropertyFromValue(token) {
function findMatchingHints(str, allHints) {
allHints = allHints.map(function(str) {
var strArray = typeof str === "object" ? str.value.split('"') : str.split('"')
var strArray = typeof str === "object" ? String(str.value).split('"') : str.split('"')
return {
text: strArray.join('\\\"'), // transforms quoted elements into escaped quote
renderText: typeof str === "object" ? str.label : strArray.join('\"'),