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:
@@ -79,6 +79,7 @@ class IDF_Plugin_SyncSvn
|
||||
$output = array();
|
||||
$cmd = sprintf('svnadmin create %s',
|
||||
escapeshellarg($svn_path.'/'.$shortname));
|
||||
$cmd = Pluf::f('idf_exec_cmd_prefix', '').$cmd;
|
||||
$ll = exec($cmd, $output, $return);
|
||||
return ($return == 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user