fix openbasedir-path when using mod_php, fixes #1507
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -392,8 +392,16 @@ class apache {
|
|||||||
if ($domain['phpenabled'] == '1') {
|
if ($domain['phpenabled'] == '1') {
|
||||||
// This vHost has PHP enabled and we are using the regular mod_php
|
// This vHost has PHP enabled and we are using the regular mod_php
|
||||||
|
|
||||||
if ($domain['openbasedir'] == '1') {
|
if ($domain['openbasedir'] == '1')
|
||||||
|
{
|
||||||
|
if ($domain['openbasedir_path'] == '1' || strstr($domain['documentroot'], ":") !== false)
|
||||||
|
{
|
||||||
$_phpappendopenbasedir = appendOpenBasedirPath($domain['customerroot'], true);
|
$_phpappendopenbasedir = appendOpenBasedirPath($domain['customerroot'], true);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$_phpappendopenbasedir = appendOpenBasedirPath($domain['documentroot'], true);
|
||||||
|
}
|
||||||
|
|
||||||
$_custom_openbasedir = explode(':', Settings::Get('system.phpappendopenbasedir'));
|
$_custom_openbasedir = explode(':', Settings::Get('system.phpappendopenbasedir'));
|
||||||
foreach ($_custom_openbasedir as $cobd) {
|
foreach ($_custom_openbasedir as $cobd) {
|
||||||
|
|||||||
Reference in New Issue
Block a user