Fixed issue 119, no environment for the shell_exec and exec calls.
For each call exec or shell_exec, I have added the ability to prepend a string. For example '/usr/bin/env -i '.
This commit is contained in:
@@ -52,6 +52,7 @@ class IDF_Scm
|
||||
*/
|
||||
public static function exec($command, &$output=array(), &$return=0)
|
||||
{
|
||||
$command = Pluf::f('idf_exec_cmd_prefix', '').$command;
|
||||
$key = md5($command);
|
||||
$cache = Pluf_Cache::factory();
|
||||
if (null === ($res=$cache->get($key))) {
|
||||
@@ -74,6 +75,7 @@ class IDF_Scm
|
||||
*/
|
||||
public static function shell_exec($command)
|
||||
{
|
||||
$command = Pluf::f('idf_exec_cmd_prefix', '').$command;
|
||||
$key = md5($command);
|
||||
$cache = Pluf_Cache::factory();
|
||||
if (null === ($res=$cache->get($key))) {
|
||||
|
Reference in New Issue
Block a user