diff options
author | friendica <info@friendica.com> | 2012-06-24 00:56:27 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-06-24 00:56:27 -0700 |
commit | 7f3813e9b066ab7290963e378dafd010de5416fe (patch) | |
tree | 6e627326f419d1888940cdaa0ffcb3fa5858b57e /boot.php | |
parent | 49ecf581630f8f5572c52c17edd4b6eeef2f27e5 (diff) | |
download | volse-hubzilla-7f3813e9b066ab7290963e378dafd010de5416fe.tar.gz volse-hubzilla-7f3813e9b066ab7290963e378dafd010de5416fe.tar.bz2 volse-hubzilla-7f3813e9b066ab7290963e378dafd010de5416fe.zip |
service class basics
Diffstat (limited to 'boot.php')
-rw-r--r-- | boot.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1374,9 +1374,9 @@ if(! function_exists('proc_run')) { 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); - } + for($x = 0; $x < count($args); $x ++) + $args[$x] = escapeshellarg($args[$x]); + $cmdline = implode($args," "); proc_close(proc_open($cmdline." &",array(),$foo)); } |