diff options
-rw-r--r-- | apps/files/js/fileactions.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js index 533b11a6e50..316acda5133 100644 --- a/apps/files/js/fileactions.js +++ b/apps/files/js/fileactions.js @@ -190,11 +190,11 @@ FileActions.register('all', 'Rename', OC.PERMISSION_UPDATE, function () { FileActions.register('dir', 'Open', OC.PERMISSION_READ, '', function (filename) { - var dir = encodeURIComponent($('#dir').val()).replace(/%2F/g, '/'); + var dir = $('#dir').val() if (dir != '/') { dir = dir + '/'; } - window.location = OC.linkTo('files', 'index.php') + '?dir=' + dir + encodeURIComponent(filename); + window.location = OC.linkTo('files', 'index.php') + '?dir=' + encodeURIComponent(dir + filename); }); FileActions.setDefault('dir', 'Open'); |