Skip to content
Snippets Groups Projects
Commit c0606325 authored by Vincent Petry's avatar Vincent Petry
Browse files

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

escape display name and email
parents e3f6abf1 1c731aac
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment