[imp] trouble using IMP in "Mobile (Smartphone/Tablet) mode after upgrade to horde 5.2.0 and imp 6.2.0

Patrick Wolf pwolf at socorro.com
Fri Jul 25 19:48:27 UTC 2014


Quoting Michael M Slusarz <slusarz at horde.org>:

> Quoting Bruno Marsal <bruno at marsal.biz>:
>
>> On Fri, Jul 18, 2014 at 5:04 AM, Patrick Wolf <pwolf at socorro.com> wrote:
>>
>>> When trying to open the "Mail" link on the interface the address bar
>>> changes from
>>> https://ourservername/horde/services/portal/smartmobile.php to
>>> https://ourservername/horde/services/portal/smartmobile.
>>> php#mailbox?mbox=SU5CT1g
>>> but the browser appears to just reload the screen that shows up after
>>> login. The user isn't actually taken to the mobile version of imp.
>>>
>>
>>
>> ?I assume you are running some PHP 5.3 which has issues parsing URLs with #
>> and ? in this specific order. Either you upgrade your PHP version or try to
>> use this fix which worked for me...
>> ?
>> ?diff --git a/horde/index.php b/horde/index.php
>> index ad2d01b..dad45f8 100644
>> --- a/horde/index.php
>> +++ b/horde/index.php
>> @@ -62,7 +62,14 @@ if ($main_page) {
>> } elseif (($initial_app = $prefs->getValue('initial_application')) &&
>>           ($initial_app != 'horde') &&
>>           $registry->hasPermission($initial_app)) {
>> -    $main_page = Horde::url($registry->getInitialPage($initial_app), true);
>>
>> +                $main_page = Horde::url(rtrim($initial_app, '/') . '/',
>> true);
>> } elseif ($registry->getView() == Horde_Registry::VIEW_SMARTMOBILE) {
>>     $main_page = $registry->getServiceLink('portal');
>> } elseif (($initial_page = $registry->getInitialPage('horde')) &&
>> ?
>
> This doesn't work, since the anchor information in the URL is needed  
> to redirect to the correct mailbox.
>
> michael
>
> ___________________________________
> Michael Slusarz [slusarz at horde.org]
>
> -- 
> imp mailing list
> Frequently Asked Questions: http://wiki.horde.org/FAQ
> To unsubscribe, mail: imp-unsubscribe at lists.horde.org

Yes, we're running CentOS 6.5 with the stock php 5.3.3 .  I hesitate  
to do a non-standard upgrade as I don't know what if anything else  
might break if I updated the php beyond the RHEL officially sanctioned  
version.

I wonder if it would be best to roll back to the previous version of  
Horde where this worked.  Thoughts on that?

Thanks

Pat


More information about the imp mailing list