[Tickets #8286] Re: Moving folders containing umlauts may cause misencoded folder names
bugs at horde.org
bugs at horde.org
Mon May 18 08:08:45 UTC 2009
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/8286
------------------------------------------------------------------------------
Ticket | 8286
Updated By | rainer.groesslinger at gmail.com
Summary | Moving folders containing umlauts may cause misencoded
| folder names
Queue | DIMP
Version | 1.1.2
Type | Bug
State | Assigned
Priority | 1. Low
Milestone |
Patch |
Owners | Michael Slusarz
------------------------------------------------------------------------------
rainer.groesslinger at gmail.com (2009-05-18 04:08) wrote:
The culprit seems to be dimp/imp.php:253 which calls
String::convertCharset() from lib/Horde/String.php everytime a Folder
is renamed:
$new = String::convertCharset($new, NLS::getCharset(), 'UTF7-IMAP');
RFC 2060 at 5.1.3 says:
'The character "&" (0x26) is represented by the two-octet sequence "&-".'
So the problem appears to be that an already encoded folder gets
encoded again as the escape sequence contains a character ("&") which
itself is encoded again the next time you run the encode function on
it, which explains why it turns the starting character of an encoded
folder sequence (like "test&APY-" into "test&-APY-") and after that
happened, the folder is broken.
More information about the bugs
mailing list