init
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
// TEMPORARY diagnostic - delete after checking. Shows which variables carry the Authorization header (values hidden).
|
||||
header('Content-Type: application/json');
|
||||
$found = [];
|
||||
foreach ($_SERVER as $k => $v) {
|
||||
if (stripos($k, 'AUTH') !== false) {
|
||||
$found[$k] = substr((string)$v, 0, 12) . '...';
|
||||
}
|
||||
}
|
||||
echo json_encode([
|
||||
'sapi' => PHP_SAPI,
|
||||
'server_vars' => $found,
|
||||
'getallheaders_has_auth' => function_exists('getallheaders')
|
||||
&& isset(array_change_key_case(getallheaders())['authorization']),
|
||||
], JSON_PRETTY_PRINT);
|
||||
Reference in New Issue
Block a user