fix: [server] Add application/x-pie-executable to the list of accepted mimetypes in testForBinExec

pull/7052/head
Patrizio Tufarolo 2021-02-21 01:46:52 +01:00
parent feefa591e9
commit 2d97eb9f4d
No known key found for this signature in database
GPG Key ID: 495A85221D703975
1 changed files with 1 additions and 1 deletions

View File

@ -1536,7 +1536,7 @@ class Server extends AppModel
return true;
}
if (is_executable($value)) {
if (finfo_file($finfo, $value) == "application/x-executable" || finfo_file($finfo, $value) == "application/x-sharedlib") {
if (finfo_file($finfo, $value) == "application/x-executable" || finfo_file($finfo, $value) == "application/x-pie-executable" || finfo_file($finfo, $value) == "application/x-sharedlib") {
finfo_close($finfo);
return true;
} else {