2
0
forked from Wavyzz/dolibarr

FIX vulenrability reported by wizlynx WLX-2020-012

This commit is contained in:
Laurent Destailleur
2020-06-17 14:45:15 +02:00
parent 23df5596e8
commit 6d6abd4320
4 changed files with 18 additions and 7 deletions

View File

@@ -8571,9 +8571,7 @@ function isAFileWithExecutableContent($filename)
{
return true;
}
if (preg_match('/^\./', $filename)) { // We consider file starting with a . as dangerous as executable files. For example .htaccess, .xxx
return true;
}
return false;
}