forked from Wavyzz/dolibarr
FIX vulenrability reported by wizlynx WLX-2020-012
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user