mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 15:24:05 +02:00
TemporaryLocalFileStorage::__destruct(): handle symlinks as expected
This commit is contained in:
parent
02e24699fd
commit
7ae6e537d1
@ -41,7 +41,7 @@ class TemporaryLocalFileStorage extends LocalFileStorage
|
|||||||
foreach ($directoryIterator as $path => $entry) {
|
foreach ($directoryIterator as $path => $entry) {
|
||||||
/** @var \SplFileInfo $entry */
|
/** @var \SplFileInfo $entry */
|
||||||
|
|
||||||
if ($entry->isDir()) {
|
if ($entry->isDir() && ! $entry->isLink()) {
|
||||||
rmdir($path);
|
rmdir($path);
|
||||||
} else {
|
} else {
|
||||||
unlink($path);
|
unlink($path);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user