Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ISPConfig 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Petar
ISPConfig 3
Commits
2bdc1c8a
Commit
2bdc1c8a
authored
5 years ago
by
Till Brehm
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server/lib/classes/aps_installer.inc.php
+1
-12
1 addition, 12 deletions
server/lib/classes/aps_installer.inc.php
with
1 addition
and
12 deletions
server/lib/classes/aps_installer.inc.php
+
1
−
12
View file @
2bdc1c8a
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment