[Tickets #4421] NEW: templates/calendars.inc: when using ISO-8859-1

bugs@bugs.horde.org bugs at bugs.horde.org
Fri Sep 15 07:25:48 PDT 2006


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

Ticket URL: http://bugs.horde.org/ticket/?id=4421
-----------------------------------------------------------------------
 Ticket             | 4421
 Created By         | patrick.abiven at apitech.fr
 Summary            | templates/calendars.inc: when using ISO-8859-1
 Queue              | Kronolith
 Version            | 2.1.2
 Type               | Bug
 State              | Unconfirmed
 Priority           | 1. Low
 Owners             | 
-----------------------------------------------------------------------


patrick.abiven at apitech.fr (2006-09-15 07:25) wrote:

Hello
Creating a new calendar with a name containing french accents raises an
issue when we trying to select it in the share dropdownlist.

kronolith/templates/calendars.inc uses rawurlencode() to initialize the
fields array, and decodeURIComponent() to extract value from this array.
When the charset is not utf-8, this seems to be incorrect.

Instead of using rawurlencode (), we can use encodeURIComponent():
- "<?php echo rawurlencode($cal->get('name')) ?>,
+encodeURIComponent("<?php echo $cal->get ('name') ?>"),

Thanks for your advises
Regards
Patrick





More information about the bugs mailing list