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
|
@ -148,7 +148,7 @@ if ($maxUploadFileSize >= 0 and $totalSize > $maxUploadFileSize) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = array();
|
$result = array();
|
||||||
if (strpos($dir, '..') === false) {
|
if (\OC\Files\Filesystem::isValidPath($dir) === true) {
|
||||||
$fileCount = count($files['name']);
|
$fileCount = count($files['name']);
|
||||||
for ($i = 0; $i < $fileCount; $i++) {
|
for ($i = 0; $i < $fileCount; $i++) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue