summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2016-07-01 15:00:31 +0200
committerLukas Reschke <lukas@owncloud.com>2016-07-01 15:01:48 +0200
commit4ac9eaab0379cc0535a6ab18be0fa147facf1bd5 (patch)
tree4416c8478e9ad1bb388f23006ee8da749a3bf95b /apps/files/js
parent5b65591d84a0dafb9415539eef75424004f6a4f6 (diff)
downloadnextcloud-server-4ac9eaab0379cc0535a6ab18be0fa147facf1bd5.tar.gz
nextcloud-server-4ac9eaab0379cc0535a6ab18be0fa147facf1bd5.zip
Match for /../
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/filelist.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 1f19c2a6258..506d423c817 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -1404,7 +1404,7 @@
* @param {string} [fileId] file id
*/
_setCurrentDir: function(targetDir, changeUrl, fileId) {
- targetDir = targetDir.replace(/\\/g, '/').replace(/\.\.\//g, '');
+ targetDir = targetDir.replace(/\\/g, '/').replace(/\/\.\.\//g, '/');
var previousDir = this.getCurrentDirectory(),
baseDir = OC.basename(targetDir);