Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ISPConfig 3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lolo888
ISPConfig 3
Commits
9ec43488
Commit
9ec43488
authored
Aug 22, 2012
by
mcramer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix: missing bracket :(
parent
d71bae3c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
server/plugins-available/apache2_plugin.inc.php
server/plugins-available/apache2_plugin.inc.php
+1
-1
server/plugins-available/nginx_plugin.inc.php
server/plugins-available/nginx_plugin.inc.php
+1
-1
No files found.
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
Markdown
is supported
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