Merge pull request #19006 from owncloud/individual-it-patch-1

allow ".." in folder names
This commit is contained in:
Individual IT Services 2015-09-14 15:56:53 +05:45
commit 04db96adaf
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++) {