Skip to content
This repository has been archived by the owner on Jul 24, 2018. It is now read-only.

Commit

Permalink
Merge pull request #647 from owncloud/stable9-share-escape
Browse files Browse the repository at this point in the history
[stable9] More escaping in share dropdown
  • Loading branch information
VicDeo authored Aug 9, 2016
2 parents cb7559b + 0bf3490 commit 22175f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/share.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@
showDropDown:function(itemType, itemSource, appendTo, link, possiblePermissions, filename) {
var data = OC.Share.loadItem(itemType, itemSource);
var dropDownEl;
var html = '<div id="dropdown" class="drop shareDropDown" data-item-type="'+itemType+'" data-item-source="'+itemSource+'">';
var html = '<div id="dropdown" class="drop shareDropDown" data-item-type="'+escapeHTML(itemType)+'" data-item-source="'+escapeHTML(itemSource)+'">';
if (data !== false && data.reshare !== false && data.reshare.uid_owner !== undefined && data.reshare.uid_owner !== OC.currentUser) {
html += '<span class="reshare">';
if (oc_config.enable_avatars === true) {
Expand Down

0 comments on commit 22175f5

Please sign in to comment.