[dev] [cvs] commit: framework/iCalendar iCalendar.php

Jan Schneider jan at horde.org
Sat Jan 13 09:42:41 PST 2007


Zitat von Karsten Fourmont <fourmont at gmx.de>:

> karsten     2007-01-13 07:29:25 PST
>
>   Modified files:
>     iCalendar            iCalendar.php
>   Log:
>   Use String::substring for charset safe line folding: ensure UTF8
>   two byte sequences are not split in the middle.
>
>   Revision  Changes    Path
>   1.110     +15 -12    framework/iCalendar/iCalendar.php

strlen() isn't multibyte safe either. Unless you want to calculate  
byte widths, you need to use String::length().

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the dev mailing list