Re: browser match for AvantGo and Danger hiptop

Chuck Hagenbuch <[email protected]> Wed, 4 Aug 2004 00:14:03 -0400
Newsgroups gmane.comp.horde.mimp
Message-ID <[email protected]>
Quoting Ben Poliakoff <[email protected]>:

> Neither of these are matched by the following snippet from Browser.php
> (since the UserAgent string appears to be "Mozilla/5.0" for the hiptop
> and "Mozilla/3.0" for the AvantGo browser):
>
>      } elseif (strpos($this->_lowerAgent, 'avantgo') !== false) {
>                     $this->setBrower('avantgo');
>                     $this->_mobile = true;
>      }
>
> Is there a way that I can match against string elements within the
> parentheses?

Eh? The check just needed to be moved up above the mozilla check, which I just
did.

-chuck

--
"Regard my poor demoralized mule!" - Juan Valdez
-- 
mimp mailing list - Join the hunt: http://horde.org/bounties/#mimp
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]