Skip to content
Snippets Groups Projects
Commit f8317f75 authored by Till Brehm's avatar Till Brehm
Browse files

Fixed csrf issue when deleting an invoice draft

parent ff920a38
No related branches found
No related tags found
No related merge requests found
......@@ -550,10 +550,21 @@ class ApsInstaller extends ApsBase
foreach($this->putenv as $var) {
putenv($var);
}
$tmpi = "<?php\n\n";
foreach($this->putenv as $var) {
$tmpi .= "putenv('".$var."');\n";
}
$tmpi .= "chdir('".$this->local_installpath.'install_scripts/'."');\n";
$tmpi .= 'exec("php '.$this->local_installpath.'install_scripts/'.$cfgscript.' install");';
$app->system->file_put_contents($this->local_installpath.'install_scripts/ispinstall.php', $tmpi);
exec('php '.$this->local_installpath.'install_scripts/ispinstall.php');
die();
$shell_retcode = true;
$shell_ret = array();
$app->system->exec_safe('php ? install 2>&1', $this->local_installpath.'install_scripts/'.$cfgscript);
//$app->system->exec_safe('sudo -u ? php ? install 2>&1', $this->file_owner_user, $this->local_installpath.'install_scripts/'.$cfgscript);
$shell_ret = $app->system->last_exec_out();
$shell_retcode = $app->system->last_exec_retcode();
$shell_ret = array_filter($shell_ret);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment