Skip to content

Commit

Permalink
keep within dir for deleting backups for danpros#462
Browse files Browse the repository at this point in the history
  • Loading branch information
ProjectPatatoe committed May 12, 2021
1 parent e8228b8 commit 25cdee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/admin/views/backup.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
if (login()) {
if (isset($_GET['file'])) {
$file = _h($_GET['file']);

$file = preg_replace('/\/|\\\\/','0',$file);
if (!empty($file)) {
unlink("backup/$file");
}
Expand Down

0 comments on commit 25cdee3

Please sign in to comment.