[horde] Safari on iPad problem.

Eric Jon Rostetter eric.rostetter at physics.utexas.edu
Thu Mar 24 16:21:43 UTC 2011


Quoting mailing_list <mailing_list at gd-service.it>:

> I have installed and shaped Horde3 on Debian with IMAP Dovecot.From  
> all the browser it works very well unless from safari it is on iPad  
> that on PC and from the smatphone.
> Someone has ideas?
> Excused my very bad English.Thanks to all.

If your problem is that iPhone/iPod/iPad is being directed to the mobile
interface instead of the full web browser interface, you can apply the
following patch.  If the problem is something else, you need to clairfy the
problem.


diff -u -r1.153.2.70 Browser.php
--- Browser.php 7 Jun 2009 10:42:51 -0000       1.153.2.70
+++ Browser.php 24 Mar 2011 16:20:24 -0000
@@ -1,6 +1,6 @@
  <?php
  /**
- * $Horde: framework/Browser/Browser.php,v 1.153.2.70 2009/06/07  
10:42:51 jan Exp $
+ * $Horde: framework/Browser/Browser.php,v 1.153.2.70 2009-06-07  
10:42:51 jan Exp $
   *
   * Copyright 1999-2009 The Horde Project (http://www.horde.org/)
   *
@@ -547,6 +547,14 @@
                  $this->_mobile = true;
              }

+/* EJR: Make the iPhone/iPad/iPod not default to mobile */
+           if ( strpos($agent, 'iP' ) !== 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];

Hope that helps...

-- 
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 horde mailing list