mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-07 05:36:45 +02:00
Merge pull request #46 from schniper/patch-1
Identify FirePHP by the X-FirePHP-Version header
This commit is contained in:
@@ -154,6 +154,8 @@ class FirePHPHandler extends AbstractProcessingHandler
|
|||||||
*/
|
*/
|
||||||
protected function headersAccepted()
|
protected function headersAccepted()
|
||||||
{
|
{
|
||||||
return !isset($_SERVER['HTTP_USER_AGENT']) || preg_match('{\bFirePHP/\d+\.\d+\b}', $_SERVER['HTTP_USER_AGENT']);
|
return !isset($_SERVER['HTTP_USER_AGENT'])
|
||||||
|
|| preg_match('{\bFirePHP/\d+\.\d+\b}', $_SERVER['HTTP_USER_AGENT'])
|
||||||
|
|| isset($_SERVER['HTTP_X_FIREPHP_VERSION']);
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user