Merge pull request #7052 from patriziotufarolo/patch-1

fix: [server] Add application/x-pie-executable to the list of accepted mimetypes in testForBinExec
pull/7056/head
Alexandre Dulaunoy 2021-02-21 17:40:52 +01:00 committed by GitHub
commit cd75f7b9cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 {