Project

General

Profile

Bug #18623 ยป t3lib_exec.patch

Administrator Admin, 2008-04-16 20:14

View differences:

t3lib/class.t3lib_exec.php 2008-04-16 17:41:33.000000000 +0200
return true;
}
} else { // UNIX
if (@is_executable($path.$cmd)) {
$basedirPaths = array();
if ($basedir = ini_get('open_basedir')) {
// There is a bug with function is_executable() when dealing with
// symbolic links inside a directory listed in open_basedir. If
// testing such a directory, we assume the path is valid
$basedirPaths = array_map(create_function('$val','return t3lib_exec::_fixPath($val);'), explode(':', $basedir));
}
if (@is_executable($path.$cmd) || in_array($path, $basedirPaths)) {
$T3_VAR['t3lib_exec']['apps'][$cmd]['app'] = $cmd;
$T3_VAR['t3lib_exec']['apps'][$cmd]['path'] = $path;
$T3_VAR['t3lib_exec']['apps'][$cmd]['valid'] = true;
    (1-1/1)