diff --git a/lib/classes/useragent.php b/lib/classes/useragent.php index 5ed0c7311bd..b62cf419e70 100644 --- a/lib/classes/useragent.php +++ b/lib/classes/useragent.php @@ -215,7 +215,7 @@ class core_useragent { * @return bool */ protected function is_useragent_web_crawler() { - $regex = '/Googlebot|google\.com|Yahoo! Slurp|\[ZSEBOT\]|msnbot|bingbot|BingPreview|Yandex|AltaVista|Baiduspider|Teoma/'; + $regex = '/Googlebot|google\.com|Yahoo! Slurp|\[ZSEBOT\]|msnbot|bingbot|BingPreview|Yandex|AltaVista|Baiduspider|Teoma/i'; return (preg_match($regex, $this->useragent)); }