8000 Bump monolog to 1.19 and use the agent regex const from parent by redthor · Pull Request #22296 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Bump monolog to 1.19 and use the agent regex const from parent #22296

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 5, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Bump monolog to 1.19 and use the agent regex const from parent, see #…
  • Loading branch information
redthor committed Apr 5, 2017
commit 69f9586fd52c7cd30cfa467bd910c25dc910224c
2 changes: 1 addition & 1 deletion src/Symfony/Bridge/Monolog/Handler/ChromePhpHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function onKernelResponse(FilterResponseEvent $event)
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();

Expand Down
2 changes: 1 addition & 1 deletion 2 src/Symfony/Bridge/Monolog/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
0