Skip to content

Commit e570d9c

Browse files
author
Marius Burkard
committed
- added missing chattr removal on delete
1 parent 9f0cb15 commit e570d9c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

server/lib/classes/plugin_webserver_base.inc.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1619,7 +1619,7 @@ public function eventUpdate($event_name, $data, $action, $server_type = 'apache'
16191619
$this->action = '';
16201620
}
16211621

1622-
public function eventDelete($event_name, $data, $server_type = 'apache') {
1622+
public function eventDelete($event_name, $data, $server_type = 'apache') {
16231623
global $app, $conf;
16241624

16251625
// load the server configuration options
@@ -1628,7 +1628,10 @@ public function eventDelete($event_name, $data, $server_type = 'apache') {
16281628
$web_config = $app->getconf->get_server_config($conf['server_id'], 'web');
16291629
$fastcgi_config = $app->getconf->get_server_config($conf['server_id'], 'fastcgi');
16301630

1631-
if($data['old']['type'] == 'vhost' || $data['old']['type'] == 'vhostsubdomain' || $data['old']['type'] == 'vhostalias') {
1631+
if($data['old']['type'] == 'vhost') {
1632+
$app->system->web_folder_protection($data['old']['document_root'], false);
1633+
} elseif($data['old']['type'] == 'vhostsubdomain' || $data['old']['type'] == 'vhostalias') {
1634+
16321635
$parent_domain_id = intval($data['old']['parent_domain_id']);
16331636
$tmp = $app->db->queryOneRecord("SELECT * FROM web_domain WHERE domain_id = ? AND active = 'y'", $parent_domain_id);
16341637
$app->system->web_folder_protection($tmp['document_root'], false);

0 commit comments

Comments
 (0)