fix xss vuln
This commit is contained in:
parent
473696eb18
commit
fea12d9f57
1 changed files with 1 additions and 0 deletions
|
@ -115,6 +115,7 @@ oml.ui.infoView = function(identifyData) {
|
||||||
|
|
||||||
function formatValue(value, key) {
|
function formatValue(value, key) {
|
||||||
return value ? (Ox.isArray(value) ? value : [value]).map(function(value) {
|
return value ? (Ox.isArray(value) ? value : [value]).map(function(value) {
|
||||||
|
value = Ox.encodeHTMLEntities(value);
|
||||||
if (key == 'date' && value) {
|
if (key == 'date' && value) {
|
||||||
value = value.slice(0, 4);
|
value = value.slice(0, 4);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue