We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54143ad commit edbac31Copy full SHA for edbac31
composer.json
@@ -1,7 +1,7 @@
1
{
2
"name": "tinect/redirects",
3
"description": "Redirect plugin for Shopware 6",
4
- "version": "3.1.3",
+ "version": "3.1.4",
5
"type": "shopware-platform-plugin",
6
"license": "MIT",
7
"authors": [
src/Subscriber/isExcludedEventSubscriber.php
@@ -55,7 +55,7 @@ public function isBadUserAgent(IsExcludedEvent $event): void
55
56
$badBotsRegex = '/' . $badUserAgents . '/i';
57
58
- if (\preg_match($badBotsRegex, $userAgent) !== false) {
+ if (\preg_match($badBotsRegex, $userAgent) === 1) {
59
$event->setIsExcluded(true);
60
}
61
0 commit comments