diff options
author | Friendika <info@friendika.com> | 2011-08-17 18:43:17 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-08-17 18:43:17 -0700 |
commit | 96bcaf4331153d911dff6d8c7265f1a8f3f01255 (patch) | |
tree | 8de08a531d2674860cc38d8719795280f0559355 /boot.php | |
parent | db03b1ab173d61b1ee75271dac1e48f3475ad42c (diff) | |
download | volse-hubzilla-96bcaf4331153d911dff6d8c7265f1a8f3f01255.tar.gz volse-hubzilla-96bcaf4331153d911dff6d8c7265f1a8f3f01255.tar.bz2 volse-hubzilla-96bcaf4331153d911dff6d8c7265f1a8f3f01255.zip |
poormancron - proc_run executing twice, once as function; once as commandline
Diffstat (limited to 'boot.php')
-rw-r--r-- | boot.php | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -7,7 +7,7 @@ require_once('include/text.php'); require_once("include/pgettext.php"); -define ( 'FRIENDIKA_VERSION', '2.2.1074' ); +define ( 'FRIENDIKA_VERSION', '2.2.1075' ); define ( 'DFRN_PROTOCOL_VERSION', '2.21' ); define ( 'DB_UPDATE_VERSION', 1079 ); @@ -1033,11 +1033,14 @@ function proc_run($cmd){ $a = get_app(); $args = func_get_args(); - call_hooks("proc_run", $args); + $arr = array('args' => $args, 'run_cmd' => true); + + call_hooks("proc_run", $arr); + if(! $arr['run_cmd']) + return; if(count($args) && $args[0] === 'php') $args[0] = ((x($a->config,'php_path')) && (strlen($a->config['php_path'])) ? $a->config['php_path'] : 'php'); - foreach ($args as $arg){ $arg = escapeshellarg($arg); } |