mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 10:40:40 -04:00
Fix OC_Helper::rmdirr for nested symlinks (#25255)
This commit is contained in:
parent
4ac256ea6c
commit
21bdd3005b
1 changed files with 3 additions and 1 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in a new issue