Skip to content

Commit

Permalink
Add more escaping
Browse files Browse the repository at this point in the history
Escape folder names in share.js
  • Loading branch information
oparoz authored and LukasReschke committed Jul 4, 2016
1 parent 9d3cd61 commit 6933d27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/vendor/owncloud/share.js
Expand Up @@ -144,8 +144,8 @@
var data = this._loadShares(path);
var dropDownEl;
var self = this;
var html = '<div id="dropdown" class="drop shareDropDown" data-item-type="' + itemType +
'" data-item-source="' + path + '">';
var html = '<div id="dropdown" class="drop shareDropDown" data-item-type="' + escapeHTML(itemType) +
'" data-item-source="' + escapeHTML(path) + '">';
if (data !== false && data[0] && !_.isUndefined(data[0].uid_file_owner) &&
data[0].uid_file_owner !== OC.currentUser
) {
Expand Down

0 comments on commit 6933d27

Please sign in to comment.