2
0
forked from Wavyzz/dolibarr
This commit is contained in:
Laurent Destailleur
2018-04-22 20:57:43 +02:00
parent b049cf194d
commit e9a2894727
5 changed files with 9 additions and 13 deletions

View File

@@ -1139,7 +1139,7 @@ function dol_delete_file($file,$disableglob=0,$nophperrors=0,$nohook=0,$object=n
if (preg_match('/\.\./',$file) || preg_match('/[<>|]/',$file))
{
dol_syslog("Refused to delete file ".$file, LOG_WARNING);
return False;
return false;
}
if (empty($nohook))
@@ -1238,7 +1238,7 @@ function dol_delete_dir($dir,$nophperrors=0)
if (preg_match('/\.\./',$dir) || preg_match('/[<>|]/',$dir))
{
dol_syslog("Refused to delete dir ".$dir, LOG_WARNING);
return False;
return false;
}
$dir_osencoded=dol_osencode($dir);