Update dolibarr_export.php

This commit is contained in:
Laurent Destailleur 2019-08-26 16:33:22 +02:00 committed by GitHub
parent 22c661be9f
commit 6771af4565
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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