summaryrefslogtreecommitdiffstats
path: root/apps/files/js/fileactions.js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-11-18 17:54:00 +0100
committerLukas Reschke <lukas@owncloud.com>2015-11-22 16:05:51 +0100
commitec3166742b08eabcca2c6d2166070b4cee488bf7 (patch)
treed6a8a1fb25e8b39373bb7499a67d2721903c11d7 /apps/files/js/fileactions.js
parent7ec83fc9fbb7428bde4cf0e1071704c941ac1f37 (diff)
downloadnextcloud-server-ec3166742b08eabcca2c6d2166070b4cee488bf7.tar.gz
nextcloud-server-ec3166742b08eabcca2c6d2166070b4cee488bf7.zip
Properly join path sections
This prevents double slashes that can mess up path comparisons in some cases.
Diffstat (limited to 'apps/files/js/fileactions.js')
-rw-r--r--apps/files/js/fileactions.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js
index 32385c42478..871a2149c88 100644
--- a/apps/files/js/fileactions.js
+++ b/apps/files/js/fileactions.js
@@ -612,10 +612,7 @@
this.register('dir', 'Open', OC.PERMISSION_READ, '', function (filename, context) {
var dir = context.$file.attr('data-path') || context.fileList.getCurrentDirectory();
- if (dir !== '/') {
- dir = dir + '/';
- }
- context.fileList.changeDirectory(dir + filename);
+ context.fileList.changeDirectory(OC.joinPaths(dir, filename));
});
this.registerAction({