lennerd / vipx-bot-detect

A bot detector written in PHP
MIT License
43 stars 18 forks source link

Fixed error with detection any user-agent as google bot #14

Closed smilesrg closed 9 years ago

smilesrg commented 9 years ago

Fixed error with detection any user-agent as google bot

smilesrg commented 9 years ago

@lennerd please accept

lennerd commented 9 years ago

Keep in mind, that you also need to change the tests, as they are using the Google bot metadata to test the detector. See https://github.com/lennerd/vipx-bot-detect/blob/7c513ff5ce8f93809cf73c101c1fa7f1b37c1eaf/Tests/BotDetectorTest.php#L68-L74