mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #13581 from nextcloud/bugfix/13576/correctly-escape-html
Correctly handle displaynames returned from the sharee API
This commit is contained in:
commit
86d30835af
1 changed files with 2 additions and 2 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Reference in a new issue