[Freeassociation-devel] Problems with un-escaped characters in TZID

Brad Hards bradh at frogmouth.net
Tue Jan 5 23:01:48 PST 2010


On Wednesday 23 December 2009 18:43:22 Brad Hards wrote:
> Hi,
> 
> I work with the OpenChange project (http://www.openchange.org), which
>  provides (amongst other things) a tool that does conversion from Exchange
>  calendars to ICalendar. We use libical for that.
> 
> One of our users reported that newlines in timezones (TZID) aren't properly
> escaped. Here is the original report:
> http://trac.openchange.org/ticket/218
> 
> It does indeed appear to be a problem with libical. Attached is a small
>  patch for the libical regression tests that shows the problem. Here is the
>  output I see with the current (trunk, revision 982) libical.
> 
> ########## Test TZID escaping                       (43) ##########
> DTSTART;VALUE=DATE;TZID=Timezone
> with a newline:20090126
> 
> not ok 641 - test encoding of 'Timezone\nwith a newline'
> # test failed: ""
> #          at: regression.c:1270
> #      got: DTSTART;VALUE=DATE;TZID=Timezone
> with a newline:20090126
> 
> # expected: DTSTART;VALUE=DATE,TZID=Timezone\nwith a newline:20090126
> 
> 
> I'm not very familiar with libical (just a user of the library), but it
>  looks like maybe icalparameter_as_ical_string_r() needs to handle the
>  CTLs?
> 
> Thoughts? Suggestions?
Ping?

Brad




More information about the libical-devel mailing list