[mimp] browser match for AvantGo and Danger hiptop

Chuck Hagenbuch chuck at horde.org
Tue Aug 3 21:14:03 PDT 2004


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.

-chuck

--
"Regard my poor demoralized mule!" - Juan Valdez


More information about the mimp mailing list