Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MaarchCourrier
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Harbor Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maarch
MaarchCourrier
Commits
2457615e
Commit
2457615e
authored
7 years ago
by
Pegane Nestor
Browse files
Options
Downloads
Patches
Plain Diff
FIX #6180 use cp command with exec function
parent
0bd68002
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
install/scripts/backupVersion.php
+3
-1
3 additions, 1 deletion
install/scripts/backupVersion.php
with
3 additions
and
1 deletion
install/scripts/backupVersion.php
+
3
−
1
View file @
2457615e
...
@@ -50,7 +50,9 @@ if (!$Class_Install->createPath($path)) {
...
@@ -50,7 +50,9 @@ if (!$Class_Install->createPath($path)) {
exit
;
exit
;
}
}
if
(
!
$Class_Install
->
copy_dir
(
$_SESSION
[
'config'
][
'corepath'
],
$path
.
DIRECTORY_SEPARATOR
))
{
$cmd
=
"cp -R "
.
$_SESSION
[
'config'
][
'corepath'
]
.
" "
.
$path
.
DIRECTORY_SEPARATOR
;
if
(
!
exec
(
$cmd
))
{
Giovannoni Laurent
@lgi
·
Jan 03, 2018
Ne pas utiliser la commande exec -> passer par du php (voir exemples internet)
Ne pas utiliser la commande exec -> passer par du php (voir exemples internet)
Please
register
or
sign in
to reply
$return
[
'status'
]
=
0
;
$return
[
'status'
]
=
0
;
$return
[
'text'
]
=
_CAN_NOT_COPY_TO
.
':'
.
$path
;
$return
[
'text'
]
=
_CAN_NOT_COPY_TO
.
':'
.
$path
;
...
...
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