Skip to content

Commit

Permalink
Fix OC_Helper::rmdirr for nested symlinks (#25255)
Browse files Browse the repository at this point in the history
  • Loading branch information
VicDeo authored and DeepDiver1975 committed Jul 1, 2016
1 parent 4ac256e commit 21bdd30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/private/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,9 @@ static function rmdirr($dir, $deleteSelf = true) {

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());
Expand Down

0 comments on commit 21bdd30

Please sign in to comment.