aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/tests/js
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-09-01 10:06:06 +0200
committerJoas Schilling <coding@schilljs.com>2016-09-01 10:06:06 +0200
commit7cd86cfe596cb6564bfd889c0f931211067379b5 (patch)
tree6dfcc4d2ba1adf31ddff90fd050b358203345699 /apps/files/tests/js
parent4a5cd74fb29b19c975f893e0289b1b34bf5e8a62 (diff)
downloadnextcloud-server-7cd86cfe596cb6564bfd889c0f931211067379b5.tar.gz
nextcloud-server-7cd86cfe596cb6564bfd889c0f931211067379b5.zip
Filter out %0A from paths
Diffstat (limited to 'apps/files/tests/js')
-rw-r--r--apps/files/tests/js/filelistSpec.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/tests/js/filelistSpec.js b/apps/files/tests/js/filelistSpec.js
index 0a4812f3a81..9180b032301 100644
--- a/apps/files/tests/js/filelistSpec.js
+++ b/apps/files/tests/js/filelistSpec.js
@@ -1401,9 +1401,10 @@ describe('OCA.Files.FileList tests', function() {
'/abc/..',
'/abc/../',
'/../abc/',
+ '/foo%0Abar/',
'/another\\subdir/../foo\\../bar\\..\\file/..\\folder/../'
], function(path) {
- fileList.changeDirectory(path);
+ fileList.changeDirectory(decodeURI(path));
expect(fileList.getCurrentDirectory()).toEqual('/');
});
});