cloudstack 3.0 UI - XSS - listView - fix it to show correct value.

This commit is contained in:
Jessica Wang 2012-03-14 16:11:04 -07:00
parent afbf97465a
commit 7f14bb70c5

View File

@ -771,10 +771,10 @@
if (field.editable) createEditField($td).appendTo($td);
else {
var origValue = $td.html();
var sanitizedValue = $td.html();
$td.html('');
$td.append(
$('<span></span>').html(_s(origValue))
$('<span></span>').html(sanitizedValue)
);
}
});