Commit 58053eae authored by mcramer's avatar mcramer
Browse files

Bugfix: Web folder protection did not work on web deletion

Bugfix: $app->system->unlink function had wrong parameter name, no files were deleted ever
parent 6ac26d69
...@@ -699,7 +699,7 @@ class system{ ...@@ -699,7 +699,7 @@ class system{
} }
} }
function unlink($file) { function unlink($filename) {
if(file_exists($filename)) { if(file_exists($filename)) {
return unlink($filename); return unlink($filename);
} }
......
...@@ -1452,7 +1452,7 @@ class apache2_plugin { ...@@ -1452,7 +1452,7 @@ class apache2_plugin {
$app->uses('system'); $app->uses('system');
$web_config = $app->getconf->get_server_config($conf['server_id'], 'web'); $web_config = $app->getconf->get_server_config($conf['server_id'], 'web');
$app->system->web_folder_protection($data['new']['document_root'],false); $app->system->web_folder_protection($data['old']['document_root'],false);
//* Check if this is a chrooted setup //* Check if this is a chrooted setup
if($web_config['website_basedir'] != '' && @is_file($web_config['website_basedir'].'/etc/passwd')) { if($web_config['website_basedir'] != '' && @is_file($web_config['website_basedir'].'/etc/passwd')) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment