mirror of https://github.com/MISP/MISP
Merge pull request #7052 from patriziotufarolo/patch-1
fix: [server] Add application/x-pie-executable to the list of accepted mimetypes in testForBinExecpull/7056/head
commit
cd75f7b9cc
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue