Bump monolog to 1.19 and use the agent regex const from parent, see #22264

This commit is contained in:
Douglas Reith 2017-04-05 13:03:25 +00:00
parent 3a45a9d310
commit 69f9586fd5
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ class ChromePhpHandler extends BaseChromePhpHandler
return;
}
if (!preg_match('{\b(?:Chrome/\d+(?:\.\d+)*|Firefox/(?:4[3-9]|[5-9]\d|\d{3,})(?:\.\d)*)\b}', $event->getRequest()->headers->get('User-Agent'))) {
if (!preg_match(static::USER_AGENT_REGEX, $event->getRequest()->headers->get('User-Agent'))) {
$this->sendHeaders = false;
$this->headers = array();

View File

@ -17,7 +17,7 @@
],
"require": {
"php": ">=5.5.9",
"monolog/monolog": "~1.11",
"monolog/monolog": "~1.19",
"symfony/http-kernel": "~2.8|~3.0"
},
"require-dev": {