Browse Source

Merge pull request #463 from ProjectPatatoe/master

backup handling tweak by @ProjectPatatoe
pull/464/head
Dan 4 years ago
committed by GitHub
parent
commit
272cfd174f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      .gitignore
  2. +1
    -1
      system/admin/views/backup.html.php

+ 1
- 0
.gitignore View File

@ -2,3 +2,4 @@
/content/* /content/*
/config/config.ini /config/config.ini
/config/users/*.ini /config/users/*.ini
/backup

+ 1
- 1
system/admin/views/backup.html.php View File

@ -3,7 +3,7 @@
if (login()) { if (login()) {
if (isset($_GET['file'])) { if (isset($_GET['file'])) {
$file = _h($_GET['file']); $file = _h($_GET['file']);
$file = preg_replace('/\/|\\\\/','0',$file);
if (!empty($file)) { if (!empty($file)) {
unlink("backup/$file"); unlink("backup/$file");
} }


Loading…
Cancel
Save