Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
d079b013
Unverified
Commit
d079b013
authored
Nov 24, 2022
by
clk
Browse files
Fixed file deletion bug
parent
7b15d049
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/lib/classes/aps_installer.inc.php
View file @
d079b013
...
...
@@ -384,7 +384,7 @@ class ApsInstaller extends ApsBase
if
(
is_dir
(
$this
->
document_root
)){
$files
=
array_diff
(
scandir
(
$this
->
document_root
),
array
(
'.'
,
'..'
,
'error'
,
'stats'
));
foreach
(
$files
as
$file
){
if
(
is_dir
(
$this
->
document_root
.
'/'
.
$file
)){
if
(
is_dir
(
$this
->
document_root
.
'/'
.
$file
)
and
!
is_link
(
$this
->
document_root
.
'/'
.
$file
)
){
$app
->
file
->
removeDirectory
(
$this
->
document_root
.
'/'
.
$file
);
}
else
{
@
unlink
(
$this
->
document_root
.
'/'
.
$file
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment