fix xss vuln

This commit is contained in:
Rolux 2016-01-08 13:28:56 +05:30
parent 473696eb18
commit fea12d9f57

View file

@ -115,6 +115,7 @@ oml.ui.infoView = function(identifyData) {
function formatValue(value, key) {
return value ? (Ox.isArray(value) ? value : [value]).map(function(value) {
value = Ox.encodeHTMLEntities(value);
if (key == 'date' && value) {
value = value.slice(0, 4);
}