mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
CLOUDSTACK-1166: cloudstack UI - dashboard - sanitize content before setting it to a HTML element.
This commit is contained in:
parent
7330deeb2f
commit
01d7fa4bed
@ -88,9 +88,9 @@
|
||||
val.substring(0, concatValue).concat('...') : val;
|
||||
}).toArray().join('<br/>');
|
||||
|
||||
$arrayElem.html(val);
|
||||
$arrayElem.html(_s(val));
|
||||
} else {
|
||||
$arrayElem.html(_l(arrayValue));
|
||||
$arrayElem.html(_s(_l(arrayValue)));
|
||||
}
|
||||
|
||||
$arrayElem.attr('title', _l(arrayValue).toString().replace('<br/>', ', '));
|
||||
@ -98,7 +98,7 @@
|
||||
});
|
||||
});
|
||||
|
||||
$li.attr({ title: _l(item.description) });
|
||||
$li.attr({ title: _s(_l(item.description)) });
|
||||
|
||||
$li.fadeIn();
|
||||
});
|
||||
@ -108,7 +108,7 @@
|
||||
if ($item.hasClass('chart-line')) {
|
||||
$item.show().animate({ width: value + '%' });
|
||||
} else {
|
||||
$item.hide().html(value).fadeIn();
|
||||
$item.hide().html(_s(value)).fadeIn();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user