escape display name and email

This commit is contained in:
Thomas Müller 2014-05-09 23:12:26 +02:00
parent 1083085e6e
commit 78c0cc6089
1 changed files with 1 additions and 1 deletions

View File

@ -348,7 +348,7 @@ OC.Share={
})
.data("ui-autocomplete")._renderItem = function( ul, item ) {
return $( "<li>" )
.append( "<a>" + item.displayname + "<br>" + item.email + "</a>" )
.append( "<a>" + escapeHTML(item.displayname) + "<br>" + escapeHTML(item.email) + "</a>" )
.appendTo( ul );
};
}