Fixed XSS

master
Howaner 2019-05-01 01:03:16 +02:00
parent 17918b3e21
commit 5bb7b5b368
1 changed files with 3 additions and 2 deletions

View File

@ -90,8 +90,9 @@ jQuery(function($){
$('#qid_detail_recipients').html(''); $('#qid_detail_recipients').html('');
if (typeof data.recipients !== 'undefined') { if (typeof data.recipients !== 'undefined') {
$.each(data.recipients, function(index, value) { $.each(data.recipients, function(index, value) {
var displayStr = value.address + (value.type != 'to' ? (' (' + value.type.toUpperCase() + ')') : ''); var elem = $('<span class="mail-address-item"></span>');
$('#qid_detail_recipients').append('<span class="mail-address-item")>' + displayStr + '</span>'); elem.text(value.address + (value.type != 'to' ? (' (' + value.type.toUpperCase() + ')') : ''));
$('#qid_detail_recipients').append(elem);
}); });
} }