diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2007-11-21 19:43:05 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2007-11-21 19:43:05 +0000 |
| commit | 9d58419187cab08070a023ff71f981fec3dbceb5 (patch) | |
| tree | b129eea6aeccfdd88305dd7da1a471475ccab943 /install_checks.php | |
| parent | e9c1fbfb9c116493588329d300eeb01e9049cde8 (diff) | |
| download | install-9d58419187cab08070a023ff71f981fec3dbceb5.tar.gz install-9d58419187cab08070a023ff71f981fec3dbceb5.tar.bz2 install-9d58419187cab08070a023ff71f981fec3dbceb5.zip | |
check for safe_mode setting before running shell_exec()
Diffstat (limited to 'install_checks.php')
| -rw-r--r-- | install_checks.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/install_checks.php b/install_checks.php index 5459b1b..ee251d4 100644 --- a/install_checks.php +++ b/install_checks.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_install/install_checks.php,v 1.29 2007/11/08 18:15:01 squareing Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_install/install_checks.php,v 1.30 2007/11/21 19:43:05 squareing Exp $ * @package install * @subpackage functions * @author xing @@ -171,7 +171,7 @@ function check_settings() { $command = $app['command']; } - if( $shellResults[$exe] = shell_exec( $command )) { + if( get_php_setting( 'safe_mode' ) == 'OFF' && $shellResults[$exe] = shell_exec( $command )) { @unlink( TEMP_PKG_PATH.'test.txt' ); $executables[$exe]['passed'] = TRUE; } else { |
