Skip to content

Commit

Permalink
Merge "Related-Bug: #1657280 - Sanitizing the values for introspect p…
Browse files Browse the repository at this point in the history
…age. For others its handled in the core."
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Mar 10, 2017
2 parents d8b15b9 + 82faee3 commit c2afcc7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ define([
}

_.each(dataRecord, function (value, key) {
value = JSON.parse(cowu.sanitize(JSON.stringify(value)));
if (key.charAt(0) !== "_" && ["more", "next_batch"].indexOf(key) === -1 ) {
var gridColumn = {
id: key, field: key,
Expand All @@ -106,7 +107,7 @@ define([
if (contrail.checkIfExist(value._link)) {
gridColumn.formatter = function (r, c, v, cd, dc) {
return '<a class="introspect-link" data-link="' + value._link + '" ' +
'x="' + dc[key] + '">' + dc[key] + "</a>";
'x="' + cowu.sanitize(dc[key]) + '">' + cowu.sanitize(dc[key]) + "</a>";
};
gridColumn.exportConfig = { allow: true };

Expand Down

0 comments on commit c2afcc7

Please sign in to comment.