Merge pull request #8526 from owncloud/escape-share-emails-master

escape display name and email
This commit is contained in:
Vincent Petry 2014-05-13 10:29:54 +02:00
commit c06063255f
1 changed files with 2 additions and 2 deletions

View File

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