Merge pull request #19006 from owncloud/individual-it-patch-1
allow ".." in folder names
This commit is contained in:
commit
04db96adaf
|
@ -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 New Issue