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
Merge requests
!391
Wrong table used to remove deleted backup record for website. File gets removed …
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Wrong table used to remove deleted backup record for website. File gets removed …
ZarToK/ispconfig3:patch-3
into
stable-3.1
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Aron Bergström
requested to merge
ZarToK/ispconfig3:patch-3
into
stable-3.1
8 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
…but not database record.
0
0
Merge request reports
Compare
stable-3.1
stable-3.1 (base)
and
latest version
latest version
163fa8ca
1 commit,
8 years ago
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
server/plugins-available/backup_plugin.inc.php
+
1
−
1
Options
@@ -167,7 +167,7 @@ class backup_plugin {
if
(
file_exists
(
$backup_dir
.
'/'
.
$backup
[
'filename'
])
&&
!
stristr
(
$backup_dir
.
'/'
.
$backup
[
'filename'
],
'..'
)
&&
!
stristr
(
$backup_dir
.
'/'
.
$backup
[
'filename'
],
'etc'
))
{
unlink
(
$backup_dir
.
'/'
.
$backup
[
'filename'
]);
$sql
=
"DELETE FROM
mail
_backup WHERE server_id = ? AND parent_domain_id = ? AND filename = ?"
;
$sql
=
"DELETE FROM
web
_backup WHERE server_id = ? AND parent_domain_id = ? AND filename = ?"
;
$app
->
db
->
query
(
$sql
,
$conf
[
'server_id'
],
$backup
[
'parent_domain_id'
],
$backup
[
'filename'
]);
if
(
$app
->
db
->
dbHost
!=
$app
->
dbmaster
->
dbHost
)
$app
->
dbmaster
->
query
(
$sql
);
$app
->
log
(
'unlink '
.
$backup_dir
.
'/'
.
$backup
[
'filename'
],
LOGLEVEL_DEBUG
);
Loading