Skip to content

Commit 155cc0d

Browse files
committed
Fixed chroot detection in apache2 plugin.
1 parent b2b3b16 commit 155cc0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plugins-available/apache2_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ function update($event_name,$data) {
236236
$web_config = $app->getconf->get_server_config($conf["server_id"], 'web');
237237

238238
//* Check if this is a chrooted setup
239-
if($web_config['website_basedir'] != '' && @is_file($web_config['/var/www'].'/etc/passwd')) {
239+
if($web_config['website_basedir'] != '' && @is_file($web_config['website_basedir'].'/etc/passwd')) {
240240
$apache_chrooted = true;
241241
$app->log("Info: Apache is chrooted.",LOGLEVEL_DEBUG);
242242
} else {

0 commit comments

Comments
 (0)