io.c: Accept resource parameters in iCal import
Remove colons from the "SUMMARY:" and "DURATION:" search patterns in ical_read_event() to allow for additional parameters (such as language parameters, cf. RFC 5545). Reported-by: Andraž 'ruskie' Levstik <ruskie@codemages.net> Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
parent
0c4e9d3f00
commit
8681af3c6d
4
src/io.c
4
src/io.c
@ -2427,10 +2427,10 @@ ical_read_event (FILE *fdi, FILE *log, unsigned *noevents, unsigned *noapoints,
|
||||
{
|
||||
const int ITEMLINE = *lineno;
|
||||
const struct string endevent = STRING_BUILD ("END:VEVENT");
|
||||
const struct string summary = STRING_BUILD ("SUMMARY:");
|
||||
const struct string summary = STRING_BUILD ("SUMMARY");
|
||||
const struct string dtstart = STRING_BUILD ("DTSTART");
|
||||
const struct string dtend = STRING_BUILD ("DTEND");
|
||||
const struct string duration = STRING_BUILD ("DURATION:");
|
||||
const struct string duration = STRING_BUILD ("DURATION");
|
||||
const struct string rrule = STRING_BUILD ("RRULE");
|
||||
const struct string exdate = STRING_BUILD ("EXDATE");
|
||||
const struct string alarm = STRING_BUILD ("BEGIN:VALARM");
|
||||
|
Loading…
x
Reference in New Issue
Block a user