diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-02-09 13:07:44 +0100 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-02-09 13:07:52 +0100 |
commit | 855c9480b73d0ea3f6d0562503db5d72f64c14db (patch) | |
tree | 8d479da02f04265bd5768f3dffc76e6c0bbaf3b2 /apps/files/js/fileactions.js | |
parent | e928a342c452b49ed84e36d3534bb9715f55845b (diff) | |
download | nextcloud-server-855c9480b73d0ea3f6d0562503db5d72f64c14db.tar.gz nextcloud-server-855c9480b73d0ea3f6d0562503db5d72f64c14db.zip |
only encodeURIComponent once
Diffstat (limited to 'apps/files/js/fileactions.js')
-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'); |