[mimp] browser match for AvantGo and Danger hiptop
Ben Poliakoff
benp at reed.edu
Tue Aug 3 21:47:19 PDT 2004
* Chuck Hagenbuch <chuck at horde.org> [040803 21:14]:
> Quoting Ben Poliakoff <benp at reed.edu>:
>
> >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.
Fair enough! I thought something fancier might be going on. Thanks for
the clarification!
Ben
More information about the mimp
mailing list