mirror of https://github.com/MISP/MISP
fix: [server] Add application/x-pie-executable to the list of accepted mimetypes in testForBinExec
parent
feefa591e9
commit
2d97eb9f4d
|
@ -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