[Tickets #6251] Re: bad encoding when we try to retrieve share

bugs at horde.org bugs at horde.org
Tue Feb 12 14:35:22 UTC 2008


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=6251
-----------------------------------------------------------------------
 Ticket             | 6251
 Updated By         | mrousseau at ate.tm.fr
 Summary            | bad encoding when we try to retrieve share
 Queue              | Kronolith
 Version            | HEAD
 Type               | Bug
 State              | Unconfirmed
 Priority           | 2. Medium
 Milestone          | 
 Patch              | 
 Owners             | 
-----------------------------------------------------------------------


mrousseau at ate.tm.fr (2008-02-12 09:35) wrote:

> kronolith/perms.php
>
>  $share = &$shares->getShare($category);
>
> seems to not encode correctly $category, so when we try to build the 
> list of share in  lib/Horde/Share/kolab.php :
> line 128 : "if (!in_array($object, $shares)) {" failed because it try 
> to compare in my test :  INBOX/ESSAI with INBOX%2FESSAI
>
> crude hack in perms.php before :
> $share = &$shares->getShare($category);
> put :
> $category=urlencode($category);


it's needing to add too :
$category = str_replace('+' , '%20' , $category);
after urlencode to manage space in folder name




More information about the bugs mailing list