mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-11 07:34:12 +02:00
Detect Chrome through the user agent in ChromePhpHandler
The header will be sent only to Chrome, avoiding issues with IE for long headers.
This commit is contained in:
@@ -121,9 +121,7 @@ class ChromePhpHandler extends AbstractProcessingHandler
|
|||||||
*/
|
*/
|
||||||
protected function headersAccepted()
|
protected function headersAccepted()
|
||||||
{
|
{
|
||||||
return true;
|
return !isset($_SERVER['HTTP_USER_AGENT'])
|
||||||
/*return !isset($_SERVER['HTTP_USER_AGENT'])
|
|| preg_match('{\bChrome/\d+[\.\d+]*\b}', $_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