diff options
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/js/public.js | 6 | ||||
-rw-r--r-- | apps/files_sharing/l10n/es_AR.js | 1 | ||||
-rw-r--r-- | apps/files_sharing/l10n/es_AR.json | 1 |
3 files changed, 7 insertions, 1 deletions
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js index 82691129926..9b2e2c00f60 100644 --- a/apps/files_sharing/js/public.js +++ b/apps/files_sharing/js/public.js @@ -286,8 +286,12 @@ OCA.Sharing.PublicApp = { _saveToOwnCloud: function (remote, token, owner, name, isProtected) { var location = window.location.protocol + '//' + window.location.host + OC.webroot; + + if(remote.substr(-1) !== '/') { + remote += '/' + }; - var url = remote + '/index.php/apps/files#' + 'remote=' + encodeURIComponent(location) // our location is the remote for the other server + var url = remote + 'index.php/apps/files#' + 'remote=' + encodeURIComponent(location) // our location is the remote for the other server + "&token=" + encodeURIComponent(token) + "&owner=" + encodeURIComponent(owner) + "&name=" + encodeURIComponent(name) + "&protected=" + isProtected; diff --git a/apps/files_sharing/l10n/es_AR.js b/apps/files_sharing/l10n/es_AR.js index fac8b357506..f0e363b2f49 100644 --- a/apps/files_sharing/l10n/es_AR.js +++ b/apps/files_sharing/l10n/es_AR.js @@ -1,6 +1,7 @@ OC.L10N.register( "files_sharing", { + "Server to server sharing is not enabled on this server" : "Compartir entre servidores no está habilitado en este servidor", "Cancel" : "Cancelar", "Shared by" : "Compartido por", "Sharing" : "Compartiendo", diff --git a/apps/files_sharing/l10n/es_AR.json b/apps/files_sharing/l10n/es_AR.json index 6a7316bff8c..7a6441c7bdf 100644 --- a/apps/files_sharing/l10n/es_AR.json +++ b/apps/files_sharing/l10n/es_AR.json @@ -1,4 +1,5 @@ { "translations": { + "Server to server sharing is not enabled on this server" : "Compartir entre servidores no está habilitado en este servidor", "Cancel" : "Cancelar", "Shared by" : "Compartido por", "Sharing" : "Compartiendo", |