[Logging] Add support for firefox in ChromePhpHandler
This commit is contained in:
parent
2710a88363
commit
c8efc4dfc2
@ -42,7 +42,7 @@ class ChromePhpHandler extends BaseChromePhpHandler
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!preg_match('{\bChrome/\d+[\.\d+]*\b}', $event->getRequest()->headers->get('User-Agent'))) {
|
if (!preg_match('{\b(?:Chrome/\d+(?:\.\d+)*|Firefox/(?:4[3-9]|[5-9]\d|\d{3,})(?:\.\d)*)\b}', $event->getRequest()->headers->get('User-Agent'))) {
|
||||||
$this->sendHeaders = false;
|
$this->sendHeaders = false;
|
||||||
$this->headers = array();
|
$this->headers = array();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user