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
Model registry
Operate
Environments
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
ISPConfig
ISPConfig 3
Commits
f8317f75
Commit
f8317f75
authored
5 years ago
by
Till Brehm
Browse files
Options
Downloads
Patches
Plain Diff
Fixed csrf issue when deleting an invoice draft
parent
ff920a38
No related branches found
Branches containing commit
No related tags found
Tags containing commit
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
+12
-1
12 additions, 1 deletion
server/lib/classes/aps_installer.inc.php
with
12 additions
and
1 deletion
server/lib/classes/aps_installer.inc.php
+
12
−
1
View file @
f8317f75
...
@@ -550,10 +550,21 @@ class ApsInstaller extends ApsBase
...
@@ -550,10 +550,21 @@ 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
(
'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_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.
Till Brehm
@tbrehm
mentioned in commit
2bdc1c8a
·
5 years ago
mentioned in commit
2bdc1c8a
mentioned in commit 2bdc1c8ac9246692f53d94691d36d6485d0aafa4
Toggle commit list
Till Brehm
@tbrehm
mentioned in merge request
!942 (merged)
·
5 years ago
mentioned in merge request
!942 (merged)
mentioned in merge request !942
Toggle commit list
Till Brehm
@tbrehm
mentioned in commit
9d05ac19
·
5 years ago
mentioned in commit
9d05ac19
mentioned in commit 9d05ac1945df517f2e2886deed75c88de3116f9f
Toggle commit list
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