Merge pull request #13585 from nextcloud/backport/13581/stable15

[stable15] Correctly handle displaynames returned from the sharee API
This commit is contained in:
Roeland Jago Douma 2019-01-14 19:30:26 +01:00 committed by GitHub
commit fea21a857b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -477,7 +477,7 @@
autocompleteRenderItem: function(ul, item) {
var icon = 'icon-user';
var text = item.label;
var text = escapeHTML(item.label);
var description = '';
var type = '';
var getTranslatedType = function(type) {
@ -497,7 +497,7 @@
}
if (typeof item.name !== 'undefined') {
text = item.name;
text = escapeHTML(item.name);
}
if (item.value.shareType === OC.Share.SHARE_TYPE_GROUP) {
icon = 'icon-contacts-dark';