Version 4.7.8
This commit is contained in:
1 parent
7b7404e741
commit
fd22d99e69
688 files changed
+19814
-10890
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user