commit
4fbab3c12d
|
@ -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;
|
||||||
|
|
|
@ -199,10 +199,10 @@ OC.Share={
|
||||||
message = t('core', 'Shared');
|
message = t('core', 'Shared');
|
||||||
// even if reshared, only show "Shared by"
|
// even if reshared, only show "Shared by"
|
||||||
if (owner) {
|
if (owner) {
|
||||||
message = t('files_sharing', 'Shared by {owner}', {owner: owner});
|
message = t('files_sharing', 'Shared by {owner}', {owner: escapeHTML(owner)});
|
||||||
}
|
}
|
||||||
else if (recipients) {
|
else if (recipients) {
|
||||||
message = t('core', 'Shared with {recipients}', {recipients: recipients});
|
message = t('core', 'Shared with {recipients}', {recipients: escapeHTML(recipients)});
|
||||||
}
|
}
|
||||||
action.html(' <span>'+ message + '</span>').prepend(img);
|
action.html(' <span>'+ message + '</span>').prepend(img);
|
||||||
}
|
}
|
||||||
|
@ -337,9 +337,9 @@ OC.Share={
|
||||||
var defaultExpireMessage = '';
|
var defaultExpireMessage = '';
|
||||||
if ((itemType === 'folder' || itemType === 'file') && oc_appconfig.core.defaultExpireDateEnabled) {
|
if ((itemType === 'folder' || itemType === 'file') && oc_appconfig.core.defaultExpireDateEnabled) {
|
||||||
if (oc_appconfig.core.defaultExpireDateEnforced) {
|
if (oc_appconfig.core.defaultExpireDateEnforced) {
|
||||||
defaultExpireMessage = t('core', 'The public link will expire no later than {days} days after it is created', {'days': oc_appconfig.core.defaultExpireDate}) + '<br/>';
|
defaultExpireMessage = t('core', 'The public link will expire no later than {days} days after it is created', {'days': escapeHTML(oc_appconfig.core.defaultExpireDate)}) + '<br/>';
|
||||||
} else {
|
} else {
|
||||||
defaultExpireMessage = t('core', 'By default the public link will expire after {days} days', {'days': oc_appconfig.core.defaultExpireDate}) + '<br/>';
|
defaultExpireMessage = t('core', 'By default the public link will expire after {days} days', {'days': escapeHTML(oc_appconfig.core.defaultExpireDate)}) + '<br/>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -537,7 +537,7 @@ OC.Share={
|
||||||
if (collectionList.length > 0) {
|
if (collectionList.length > 0) {
|
||||||
$(collectionList).append(', '+shareWithDisplayName);
|
$(collectionList).append(', '+shareWithDisplayName);
|
||||||
} else {
|
} else {
|
||||||
var html = '<li style="clear: both;" data-collection="'+item+'">'+t('core', 'Shared in {item} with {user}', {'item': item, user: shareWithDisplayName})+'</li>';
|
var html = '<li style="clear: both;" data-collection="'+item+'">'+t('core', 'Shared in {item} with {user}', {'item': escapeHTML(item), user: escapeHTML(shareWithDisplayName)})+'</li>';
|
||||||
$('#shareWithList').prepend(html);
|
$('#shareWithList').prepend(html);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue