Skip to content
Snippets Groups Projects
Commit 1066f4ec authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Sanitize name of sharee

parent 01de7b8b
No related branches found
No related tags found
No related merge requests found
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
' data-action="Share-Notification" href="#" original-title="">' + ' data-action="Share-Notification" href="#" original-title="">' +
' <img class="svg" src="' + OC.imagePath('core', 'actions/share') + '"></img>'; ' <img class="svg" src="' + OC.imagePath('core', 'actions/share') + '"></img>';
$tr.find('.fileactions').append(function() { $tr.find('.fileactions').append(function() {
var shareBy = t('files_sharing', 'Shared by {owner}', {owner: fileData.shareOwner}); var shareBy = t('files_sharing', 'Shared by {owner}', {owner: escapeHTML(fileData.shareOwner)});
var $result = $(shareNotification + '<span> ' + shareBy + '</span></span>'); var $result = $(shareNotification + '<span> ' + shareBy + '</span></span>');
$result.on('click', function() { $result.on('click', function() {
return false; return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment