diff --git a/include/functions.inc.php b/include/functions.inc.php index 2889ec3ce..664a629f7 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -3026,7 +3026,7 @@ function pwg_unique_exec_ends($token_name) */ function is_in_container() { - if (strtoupper(substr(PHP_OS, 0, 5)) === 'LINUX') + if (strtoupper(substr(PHP_OS, 0, 5)) === 'LINUX' and empty(ini_get('open_basedir'))) { if (file_exists('/proc/2/sched')) // Check if PID2 exist { @@ -3052,4 +3052,4 @@ function is_in_container() } } -?> \ No newline at end of file +?>