[Tickets #1424] NEW: bad url decoding
bugs at bugs.horde.org
bugs at bugs.horde.org
Tue Feb 22 02:18:38 PST 2005
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=1424
-----------------------------------------------------------------------
Ticket | 1424
Created By | m.zdila at episoftware.com
Summary | bad url decoding
Queue | IMP
Version | 4.0.2
State | Unconfirmed
Priority | 1. Low
Type | Bug
Owners |
-----------------------------------------------------------------------
m.zdila at episoftware.com (2005-02-22 02:18) wrote:
Problem:
1. Mail->Compose->Address Book
2. select name "Martin dila"
3. press [To >>] (in the left pane is "Martin dila")
4. press [Search]
5. in the left pane is "Martin %u017Ddila"
Solution:
in contacts.php
1. add:
function unicode_decode($txt) {
$txt = ereg_replace('%u0([[:alnum:]]{3})', '&#x\1;',$txt);
$txt = ereg_replace('%([[:alnum:]]{2})', '&#x\1;',$txt);
return $txt;
}
2. replace line:
$selected_addresses[$a[0]] = $a[1];
to:
$selected_addresses[unicode_decode($a[0])] = unicode_decode($a[1]);
More information about the bugs
mailing list