summaryrefslogtreecommitdiffstats
path: root/apps/files/ajax
diff options
context:
space:
mode:
authorIndividual IT Services <info@individual-it.net>2015-09-14 10:42:00 +0545
committerIndividual IT Services <info@individual-it.net>2015-09-14 10:42:00 +0545
commitf7e66d49fc4e374071d60109337f47d2d102b53a (patch)
tree08c9f7b917eb23cbe53cfb63fb4ee95e2415e7fd /apps/files/ajax
parentc15ba0d6589863e546df2476778fbd305d0c3fdd (diff)
downloadnextcloud-server-f7e66d49fc4e374071d60109337f47d2d102b53a.tar.gz
nextcloud-server-f7e66d49fc4e374071d60109337f47d2d102b53a.zip
allow ".." in folder names
".." are valid in folder names, only ".." by itself is invalid fix for #18987
Diffstat (limited to 'apps/files/ajax')
-rw-r--r--apps/files/ajax/upload.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/ajax/upload.php b/apps/files/ajax/upload.php
index 4bc2ce8bdf3..7ff02d8db8e 100644
--- a/apps/files/ajax/upload.php
+++ b/apps/files/ajax/upload.php
@@ -148,7 +148,7 @@ if ($maxUploadFileSize >= 0 and $totalSize > $maxUploadFileSize) {
}
$result = array();
-if (strpos($dir, '..') === false) {
+if (\OC\Files\Filesystem::isValidPath($dir) === true) {
$fileCount = count($files['name']);
for ($i = 0; $i < $fileCount; $i++) {