Update dolibarr_export.php

This commit is contained in:
schhub 2019-08-23 08:53:43 +02:00 committed by GitHub
parent 264763f6b7
commit 3c706ae28a
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);