aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-09-01 12:24:14 +0200
committerJoas Schilling <coding@schilljs.com>2016-09-01 12:24:14 +0200
commit6c81c65eea4d77ab92d684894b2b48fc36528267 (patch)
tree925bdf65d293152f0b57469c617e6300f2bdb4fa /apps/files/js
parent26c03524e700f1938a85723ab63deaf259021327 (diff)
downloadnextcloud-server-6c81c65eea4d77ab92d684894b2b48fc36528267.tar.gz
nextcloud-server-6c81c65eea4d77ab92d684894b2b48fc36528267.zip
Also prevent null byte character
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/filelist.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 52486df91c9..cfaeca1a06b 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -1419,7 +1419,8 @@
}
}
- return path.toLowerCase().indexOf(decodeURI('%0a')) === -1;
+ return path.toLowerCase().indexOf(decodeURI('%0a')) === -1 &&
+ path.toLowerCase().indexOf(decodeURI('%00')) === -1;
},
/**