Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
9ec43488
Commit
9ec43488
authored
Aug 22, 2012
by
mcramer
Browse files
Bugfix: missing bracket :(
parent
d71bae3c
Changes
2
Hide whitespace changes
Inline
Side-by-side
server/plugins-available/apache2_plugin.inc.php
View file @
9ec43488
...
...
@@ -1521,7 +1521,7 @@ class apache2_plugin {
$docroot
=
escapeshellcmd
(
$data
[
'old'
][
'document_root'
]);
if
(
$docroot
!=
''
&&
!
stristr
(
$docroot
,
'..'
))
{
if
(
$data
[
'old'
][
'type'
]
==
'vhost'
)
exec
(
'rm -rf '
.
$docroot
);
elseif
(
!
stristr
(
$data
[
'old'
][
'web_folder'
],
'..'
))
exec
(
'rm -rf '
.
$docroot
.
'/'
.
$web_folder
;
elseif
(
!
stristr
(
$data
[
'old'
][
'web_folder'
],
'..'
))
exec
(
'rm -rf '
.
$docroot
.
'/'
.
$web_folder
)
;
}
//remove the php fastgi starter script if available
...
...
server/plugins-available/nginx_plugin.inc.php
View file @
9ec43488
...
...
@@ -1314,7 +1314,7 @@ class nginx_plugin {
$docroot
=
escapeshellcmd
(
$data
[
'old'
][
'document_root'
]);
if
(
$docroot
!=
''
&&
!
stristr
(
$docroot
,
'..'
))
{
if
(
$data
[
'old'
][
'type'
]
==
'vhost'
)
exec
(
'rm -rf '
.
$docroot
);
elseif
(
!
stristr
(
$data
[
'old'
][
'web_folder'
],
'..'
))
exec
(
'rm -rf '
.
$docroot
.
'/'
.
$web_folder
;
elseif
(
!
stristr
(
$data
[
'old'
][
'web_folder'
],
'..'
))
exec
(
'rm -rf '
.
$docroot
.
'/'
.
$web_folder
)
;
}
//remove the php fastgi starter script if available
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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