Skip to content

Commit

Permalink
agent voter case-insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
h-wang committed Jul 12, 2018
1 parent 3266997 commit 43b7884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Voter/SpiderVoter.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public function vote($spider = null)
}
$spiders = $this->getAssets();
foreach ($spiders as $s) {
if (false !== strpos($_SERVER['HTTP_USER_AGENT'], $s)) {
if (false !== stripos($_SERVER['HTTP_USER_AGENT'], $s)) {
return true;
}
}
Expand Down

0 comments on commit 43b7884

Please sign in to comment.