mirror of
https://github.com/danpros/htmly.git
synced 2026-04-21 13:06:22 +05:30
keep within dir for deleting backups for #462
This commit is contained in:
parent
e8228b82de
commit
25cdee35e2
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue