Skip to content

Commit

Permalink
Merge pull request #55 from perftools/UNIQUE_ID
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Dec 15, 2020
2 parents eaa51f9 + 501bc1c commit 39d6207
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/ProfilingData.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,24 @@ public function getProfilingData(array $profile)
}

$allowedServerKeys = array(
'PHP_SELF',
'SERVER_ADDR',
'SERVER_NAME',
'REQUEST_METHOD',
'REQUEST_TIME',
'REQUEST_TIME_FLOAT',
'QUERY_STRING',
'DOCUMENT_ROOT',
'HTTPS',
'HTTP_HOST',
'HTTP_USER_AGENT',
'HTTPS',
'PATH_INFO',
'PHP_AUTH_USER',
'PHP_SELF',
'QUERY_STRING',
'REMOTE_ADDR',
'REMOTE_USER',
'PHP_AUTH_USER',
'PATH_INFO',
'REQUEST_METHOD',
'REQUEST_TIME',
'REQUEST_TIME_FLOAT',
'SERVER_ADDR',
'SERVER_NAME',
'UNIQUE_ID',
);

$serverMeta = array_intersect_key($_SERVER, array_flip($allowedServerKeys));

$meta = array(
Expand Down

0 comments on commit 39d6207

Please sign in to comment.