Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
escape headers while browsing messages
  • Loading branch information
dejanb committed Dec 16, 2013
1 parent 7261aeb commit 975f560
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hawtio-web/src/main/webapp/app/activemq/js/browse.ts
Expand Up @@ -240,7 +240,7 @@ module ActiveMQ {
var answer = {};
angular.forEach(row, (value, key) => {
if (!ignoreColumns.any(key) && !flattenColumns.any(key)) {
answer[key] = value;
answer[Core.escapeHtml(key)] = Core.escapeHtml(value);
}
});
return answer;
Expand All @@ -252,7 +252,7 @@ module ActiveMQ {
angular.forEach(row, (value, key) => {
if (!ignoreColumns.any(key) && flattenColumns.any(key)) {
angular.forEach(value, (v2, k2) => {
answer['<span class="green">' + key.replace('Properties', ' Property') + '</span> - ' + k2] = v2
answer['<span class="green">' + key.replace('Properties', ' Property') + '</span> - ' + Core.escapeHtml(k2)] = Core.escapeHtml(v2)
});
}
});
Expand Down

0 comments on commit 975f560

Please sign in to comment.