Fix OC_Helper::rmdirr for nested symlinks (#25255)

This commit is contained in:
VicDeo 2016-07-01 12:31:02 +03:00 committed by Thomas Müller
parent 4ac256ea6c
commit 21bdd3005b
1 changed files with 3 additions and 1 deletions

View File

@ -221,7 +221,9 @@ class OC_Helper {
foreach ($files as $fileInfo) {
/** @var SplFileInfo $fileInfo */
if ($fileInfo->isDir()) {
if ($fileInfo->isLink()) {
unlink($fileInfo->getPathname());
} else if ($fileInfo->isDir()) {
rmdir($fileInfo->getRealPath());
} else {
unlink($fileInfo->getRealPath());