summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-07-28 13:03:24 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2011-07-28 13:37:16 +0200
commit8681af3c6d43ab7aa48dc49cd12058e9ba3d488e (patch)
treebbbb60afc725f853d52d2b0f37df5ecee1c7c873 /src
parent0c4e9d3f0073092df30213bb9eb4296ec9176b19 (diff)
downloadcalcurse-8681af3c6d43ab7aa48dc49cd12058e9ba3d488e.tar.gz
calcurse-8681af3c6d43ab7aa48dc49cd12058e9ba3d488e.zip
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>
Diffstat (limited to 'src')
-rw-r--r--src/io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/io.c b/src/io.c
index 74a8089..de46cce 100644
--- a/src/io.c
+++ b/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");