8000 Bump monolog to 1.19 and use the agent regex const from parent, see #… · redthor/symfony@69f9586 · GitHub
[go: up one dir, main page]

Skip to content

Commit 69f9586

Browse files
committed
Bump monolog to 1.19 and use the agent regex const from parent, see symfony#22264
1 parent 3a45a9d commit 69f9586

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Bridge/Monolog/Handler/ChromePhpHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function onKernelResponse(FilterResponseEvent $event)
4141
return;
4242
}
4343

44-
if (!preg_match('{\b(?:Chrome/\d+(?:\.\d+)*|Firefox/(?:4[3-9]|[5-9]\d|\d{3,})(?:\.\d)*)\b}', $event->getRequest()->headers->get('User-Agent'))) {
44+
if (!preg_match(static::USER_AGENT_REGEX, $event->getRequest()->headers->get('User-Agent'))) {
4545
$this->sendHeaders = false;
4646
$this->headers = array();
4747

src/Symfony/Bridge/Monolog/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
],
1818
"require": {
1919
"php": ">=5.5.9",
20-
"monolog/monolog": "~1.11",
20+
"monolog/monolog": "~1.19",
2121
"symfony/http-kernel": "~2.8|~3.0"
2222
},
2323
"require-dev": {

0 commit comments

Comments
 (0)
0