allow ".." in folder names

".." are valid in folder names, only ".." by itself is invalid
fix for #18987
This commit is contained in:
Individual IT Services 2015-09-14 10:42:00 +05:45
parent c15ba0d658
commit f7e66d49fc
1 changed files with 1 additions and 1 deletions

View File

@ -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++) {