Skip to content
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

Improved handling of ignore_user_agents #3238

Merged
merged 14 commits into from
May 13, 2023
Merged
2 changes: 1 addition & 1 deletion app/code/core/Mage/Log/Model/Visitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ protected function _construct()
$ignoreAgents = $this->_config->getNode('global/ignore_user_agents');
if ($ignoreAgents) {
$ignoreAgents = $ignoreAgents->asArray();
if (in_array($userAgent, $ignoreAgents)) {
if (in_array($userAgent, $ignoreAgents) || stristr($userAgent, $ignoreAgents)) {
$this->_skipRequestLogging = true;
}
}
Expand Down