]> source.dussan.org Git - nextcloud-server.git/commitdiff
Escape dropdown
authorLukas Reschke <lukas@statuscode.ch>
Sat, 29 Jun 2013 11:24:05 +0000 (13:24 +0200)
committerLukas Reschke <lukas@statuscode.ch>
Sat, 29 Jun 2013 11:24:05 +0000 (13:24 +0200)
Fixes #3241

core/js/share.js

index cb37dd703661ca798b0ae49b3db8d76870228929..588202d22739f1b3d1a15a35db5e6d10ba9b77f1 100644 (file)
@@ -149,9 +149,9 @@ OC.Share={
                var html = '<div id="dropdown" class="drop" data-item-type="'+itemType+'" data-item-source="'+itemSource+'">';
                if (data !== false && data.reshare !== false && data.reshare.uid_owner !== undefined) {
                        if (data.reshare.share_type == OC.Share.SHARE_TYPE_GROUP) {
-                               html += '<span class="reshare">'+t('core', 'Shared with you and the group {group} by {owner}', {group: data.reshare.share_with, owner: data.reshare.displayname_owner})+'</span>';
+                               html += '<span class="reshare">'+t('core', 'Shared with you and the group {group} by {owner}', {group: escapeHTML(data.reshare.share_with), owner: escapeHTML(data.reshare.displayname_owner)})+'</span>';
                        } else {
-                               html += '<span class="reshare">'+t('core', 'Shared with you by {owner}', {owner: data.reshare.displayname_owner})+'</span>';
+                               html += '<span class="reshare">'+t('core', 'Shared with you by {owner}', {owner: escapeHTML(data.reshare.displayname_owner)})+'</span>';
                        }
                        html += '<br />';
                }