Skip to content

Commit edbac31

Browse files
authored
fix: no new entries were tracked
1 parent 54143ad commit edbac31

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "tinect/redirects",
33
"description": "Redirect plugin for Shopware 6",
4-
"version": "3.1.3",
4+
"version": "3.1.4",
55
"type": "shopware-platform-plugin",
66
"license": "MIT",
77
"authors": [

src/Subscriber/isExcludedEventSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function isBadUserAgent(IsExcludedEvent $event): void
5555

5656
$badBotsRegex = '/' . $badUserAgents . '/i';
5757

58-
if (\preg_match($badBotsRegex, $userAgent) !== false) {
58+
if (\preg_match($badBotsRegex, $userAgent) === 1) {
5959
$event->setIsExcluded(true);
6060
}
6161
}

0 commit comments

Comments
 (0)