Version 4.7.8

This commit is contained in:
Neo committed 2025-12-19 16:10:42 -08:00
1 parent 7b7404e741
commit fd22d99e69
688 files changed
+19814 -10890

No files matched your search

+6 -6
View File
@@ -724,13 +724,13 @@ class _Request extends \IPS\Patterns\Singleton
if ( \function_exists('apache_request_headers') )
{
$headers = @apache_request_headers();
if ( isset( $headers['Authorization'] ) )
$headerKeys = ['authorization', 'x-authorization'];
foreach ( $headers as $k => $v )
{
return $headers['Authorization'];
}
elseif ( isset( $headers['X-Authorization'] ) )
{
return $headers['X-Authorization'];
if ( \in_array( \mb_strtolower( $k ), $headerKeys ) )
{
return $v;
}
}
}