diff options
author | Eduardo Chappa <chappa@washington.edu> | 2018-08-22 21:53:46 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2018-08-22 21:53:46 -0600 |
commit | f801c074d043f7b8459a44c1061de39c5cdeeabb (patch) | |
tree | fd9425ce8f7064cb317a7c6622fd5367dbe1c350 /pith/ical.c | |
parent | 8dc90e0f6aada498ae26b691ec7e6158a741cd2e (diff) | |
download | alpine-f801c074d043f7b8459a44c1061de39c5cdeeabb.tar.xz |
* Make sure that the Summary: entry in a calendar entry always gets
decoded with escapes removed. Similarly do the same for other
headers.
Diffstat (limited to 'pith/ical.c')
-rw-r--r-- | pith/ical.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pith/ical.c b/pith/ical.c index cff1f542..950f4018 100644 --- a/pith/ical.c +++ b/pith/ical.c @@ -2201,8 +2201,10 @@ ical_vevent_summary(VCALENDAR_S *vcal) if((icl = (ICLINE_S *) vevent->prop[EvPriority]) != NULL) rv->priority = atoi(icl->value); - if((icl = (ICLINE_S *) vevent->prop[EvSummary]) != NULL) + if((icl = (ICLINE_S *) vevent->prop[EvSummary]) != NULL){ rv->summary = cpystr(icl->value ? icl->value : _("No Summary")); + ical_remove_escapes(&rv->summary); + } if((icl = (ICLINE_S *) vevent->prop[EvClass]) != NULL) rv->class = cpystr(icl->value ? icl->value : _("PUBLIC")); @@ -2237,8 +2239,10 @@ ical_vevent_summary(VCALENDAR_S *vcal) } } /* end of if(organizer) */ - if((icl = (ICLINE_S *) vevent->prop[EvLocation]) != NULL) + if((icl = (ICLINE_S *) vevent->prop[EvLocation]) != NULL){ rv->location = cpystr(icl->value ? icl->value : _("Location undisclosed")); + ical_remove_escapes(&rv->location); + } if((icl = (ICLINE_S *) vevent->prop[EvDtstart]) != NULL){ struct tm ic_date; |