[imp] Latest horde/imp not working on iPhone/iPod touch

Eric Jon Rostetter eric.rostetter at physics.utexas.edu
Thu Aug 28 17:46:47 UTC 2008


Quoting eculp <eculp at encontacto.net>:

> I am very interested in your solution.

RCS file: /repository/framework/Browser/Browser.php,v
retrieving revision 1.153.2.64
diff -u -r1.153.2.64 Browser.php
--- Browser.php 9 Jun 2008 17:33:03 -0000       1.153.2.64
+++ Browser.php 28 Aug 2008 17:41:10 -0000
@@ -540,6 +540,14 @@
                  $this->_mobile = true;
              }

+/* EJR: Make the iPhone not default to mobile */
+           if ( strpos($agent, 'iPhone' ) !== false &&
+                strpos($agent, 'Safari' ) !== false &&
+                strpos($agent, 'Mobile' ) !== false ) {
+                $this->_mobile = false;
+           }
+/* EJR */
+
              $this->_majorVersion = $version[1];
              if (isset($version[2])) {
                  $this->_minorVersion = $version[2];


> And only in imp but also Kronolith and turba.

It affects all of Horde, since it is Horde (framework) that does the
browser detection.

> Thanks,
>
> ed

-- 
Eric Rostetter
The Department of Physics
The University of Texas at Austin

This message is provided "AS IS" without warranty of any kind,
either expressed or implied.  Use this message at your own risk.


More information about the imp mailing list