From: robert Date: Mon, 15 Dec 2003 13:04:35 +0000 (+0000) Subject: don't detect IE as a bot X-Git-Url: https://git-public.kairo.at/?a=commitdiff_plain;h=74d5a0734ca365ca9fb67511b7003ec2c14e7060;p=php-utility-classes.git don't detect IE as a bot --- diff --git a/include/classes/useragent.php-class b/include/classes/useragent.php-class index b8d83d6..1185c50 100755 --- a/include/classes/useragent.php-class +++ b/include/classes/useragent.php-class @@ -241,7 +241,7 @@ class userAgent { $this->version = ""; $this->bot = true; } - elseif (ereg("^Mozilla", $this->uastring)) { + elseif (ereg("^Mozilla[\s ]*$", $this->uastring)) { $this->brand = "Unknown bot (Mozilla)"; $this->version = ""; $this->bot = true;