summaryrefslogtreecommitdiff
path: root/install_checks.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2007-11-21 19:43:05 +0000
committerMax Kremmel <xing@synapse.plus.com>2007-11-21 19:43:05 +0000
commit9d58419187cab08070a023ff71f981fec3dbceb5 (patch)
treeb129eea6aeccfdd88305dd7da1a471475ccab943 /install_checks.php
parente9c1fbfb9c116493588329d300eeb01e9049cde8 (diff)
downloadinstall-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.php4
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 {