Skip to content

Commit

Permalink
refs #3813 escape tooltip content for visitorlog to fix possible XSS
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl committed Apr 21, 2013
1 parent 519df00 commit c1eb200
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/Live/templates/visitorLog.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,8 @@
show: false,
hide: false,
content: function() {
return $(this).attr('title').replace(/\n/g, '<br />');
var title = $(this).attr('title');
return $('<a>').text( title ).html().replace(/\n/g, '<br />');
},
tooltipClass: 'small'
});
Expand Down

0 comments on commit c1eb200

Please sign in to comment.