Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISPConfig
ISPConfig 3
Commits
494464f8
Commit
494464f8
authored
Mar 27, 2018
by
Till Brehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed
#5001
changing web->client association leaves traces behind
parent
0aea6ab1
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 @
494464f8
...
...
@@ -264,7 +264,7 @@ class apache2_plugin {
if
(
$data
[
"new"
][
"type"
]
!=
"vhost"
&&
$data
[
"new"
][
"type"
]
!=
"vhostsubdomain"
&&
$data
[
"new"
][
"type"
]
!=
"vhostalias"
)
return
;
// if(!is_dir($data['new']['document_root'].'/ssl')) exec('mkdir -p '.$data['new']['document_root'].'/ssl');
if
(
!
is_dir
(
$data
[
'new'
][
'document_root'
]
.
'/ssl'
))
$app
->
system
->
mkdirpath
(
$data
[
'new'
][
'document_root'
]
.
'/ssl'
);
if
(
!
is_dir
(
$data
[
'new'
][
'document_root'
]
.
'/ssl'
)
&&
!
is_dir
(
$data
[
'old'
][
'document_root'
]
.
'/ssl'
)
)
$app
->
system
->
mkdirpath
(
$data
[
'new'
][
'document_root'
]
.
'/ssl'
);
$ssl_dir
=
$data
[
'new'
][
'document_root'
]
.
'/ssl'
;
$domain
=
(
$data
[
'new'
][
'ssl_domain'
]
!=
''
)
?
$data
[
'new'
][
'ssl_domain'
]
:
$data
[
'new'
][
'domain'
];
...
...
server/plugins-available/nginx_plugin.inc.php
View file @
494464f8
...
...
@@ -106,7 +106,7 @@ class nginx_plugin {
if
(
$data
[
"new"
][
"type"
]
!=
"vhost"
&&
$data
[
"new"
][
"type"
]
!=
"vhostsubdomain"
&&
$data
[
"new"
][
"type"
]
!=
"vhostalias"
)
return
;
// if(!is_dir($data['new']['document_root'].'/ssl')) exec('mkdir -p '.$data['new']['document_root'].'/ssl');
if
(
!
is_dir
(
$data
[
'new'
][
'document_root'
]
.
'/ssl'
))
$app
->
system
->
mkdirpath
(
$data
[
'new'
][
'document_root'
]
.
'/ssl'
);
if
(
!
is_dir
(
$data
[
'new'
][
'document_root'
]
.
'/ssl'
)
&&
!
is_dir
(
$data
[
'old'
][
'document_root'
]
.
'/ssl'
)
)
$app
->
system
->
mkdirpath
(
$data
[
'new'
][
'document_root'
]
.
'/ssl'
);
$ssl_dir
=
$data
[
'new'
][
'document_root'
]
.
'/ssl'
;
$domain
=
(
$data
[
'new'
][
'ssl_domain'
]
!=
''
)
?
$data
[
'new'
][
'ssl_domain'
]
:
$data
[
'new'
][
'domain'
];
...
...
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