mirror of https://github.com/MISP/MISP
fix: [postTest] speculative fix for case sensitivity of headers
- as reported by @DavoDirtypull/8870/head
parent
b8463ebbbf
commit
e3d716b9a7
|
@ -1691,8 +1691,9 @@ class ServersController extends AppController
|
|||
if (!function_exists('getallheaders')) {
|
||||
$headers = [];
|
||||
foreach ($_SERVER as $name => $value) {
|
||||
if (substr($name, 0, 5) === 'HTTP_') {
|
||||
$headers[strtolower(str_replace('_', '-', substr($name, 5)))] = $value;
|
||||
$name = strtolower($name);
|
||||
if (substr($name, 0, 5) === 'http_') {
|
||||
$headers[str_replace('_', '-', substr($name, 5))] = $value;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue