allow ".." in folder names
".." are valid in folder names, only ".." by itself is invalid fix for #18987
This commit is contained in:
parent
c15ba0d658
commit
f7e66d49fc
1 changed files with 1 additions and 1 deletions
|
@ -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++) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue