From f79fafcf0625afdf16aad14b5584b8bad95ae1c8 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Wed, 10 Feb 2016 19:09:52 +0100 Subject: Revert back to non-webdav download link for public URLs Fixes issues with browsers not happy with the token. Fixes activities which were not sent. --- apps/files_sharing/js/public.js | 3 --- 1 file changed, 3 deletions(-) (limited to 'apps/files_sharing/js') diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js index bc609f04f79..da83044714e 100644 --- a/apps/files_sharing/js/public.js +++ b/apps/files_sharing/js/public.js @@ -154,9 +154,6 @@ OCA.Sharing.PublicApp = { // TODO: move this to a separate PublicFileList class that extends OCA.Files.FileList (+ unit tests) this.fileList.getDownloadUrl = function (filename, dir, isDir) { var path = dir || this.getCurrentDirectory(); - if (filename && !_.isArray(filename) && !isDir) { - return OC.getProtocol() + '://' + token + '@' + OC.getHost() + OC.getRootPath() + '/public.php/webdav' + OC.joinPaths(path, filename); - } if (_.isArray(filename)) { filename = JSON.stringify(filename); } -- cgit v1.2.3