forked from Wavyzz/dolibarr
Update dolibarr_export.php
This commit is contained in:
committed by
GitHub
parent
6771af4565
commit
5c13f5d397
@@ -50,7 +50,7 @@ if (! $user->admin)
|
||||
|
||||
if ($action == 'delete')
|
||||
{
|
||||
if (preg_match('/backup\//', GETPOST('urlfile', 'alpha')))
|
||||
if (preg_match('/^backup\//', GETPOST('urlfile', 'alpha')))
|
||||
{
|
||||
$file=$conf->admin->dir_output.'/backup/'.basename(GETPOST('urlfile', 'alpha'));
|
||||
$ret=dol_delete_file($file, 1);
|
||||
|
||||
Reference in New Issue
Block a user