keep within dir for deleting backups for #462

This commit is contained in:
ProjectPatatoe 2021-05-12 16:51:13 -07:00
commit 25cdee35e2
No known key found for this signature in database
GPG key ID: EC04023B28C44502

View file

@ -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");
}