Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndividual IT Services <info@individual-it.net>2015-09-14 07:57:00 +0300
committerIndividual IT Services <info@individual-it.net>2015-09-14 07:57:00 +0300
commitf7e66d49fc4e374071d60109337f47d2d102b53a (patch)
tree08c9f7b917eb23cbe53cfb63fb4ee95e2415e7fd /apps/files/ajax
parentc15ba0d6589863e546df2476778fbd305d0c3fdd (diff)
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++) {