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

Revert "Fixed csrf issue when deleting an invoice draft"

This reverts commit f8317f75
parent bda038c6
No related branches found
No related tags found
No related merge requests found
...@@ -550,21 +550,10 @@ class ApsInstaller extends ApsBase ...@@ -550,21 +550,10 @@ class ApsInstaller extends ApsBase
foreach($this->putenv as $var) { foreach($this->putenv as $var) {
putenv($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_retcode = true;
$shell_ret = array(); $shell_ret = array();
//$app->system->exec_safe('sudo -u ? php ? install 2>&1', $this->file_owner_user, $this->local_installpath.'install_scripts/'.$cfgscript); $app->system->exec_safe('php ? install 2>&1', $this->local_installpath.'install_scripts/'.$cfgscript);
$shell_ret = $app->system->last_exec_out(); $shell_ret = $app->system->last_exec_out();
$shell_retcode = $app->system->last_exec_retcode(); $shell_retcode = $app->system->last_exec_retcode();
$shell_ret = array_filter($shell_ret); $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