6.0.0-beta1
8/13/25

[#6539] Handling missing ENCODING parameter in iCal date
Summary Handling missing ENCODING parameter in iCal date
Queue Horde Framework Packages
Queue Version HEAD
Type Bug
State Resolved
Priority 1. Low
Owners jan (at) horde (dot) org
Requester wrobel (at) horde (dot) org
Created 03/29/2008 (6346 days ago)
Due
Updated 04/04/2008 (6340 days ago)
Assigned 03/30/2008 (6345 days ago)
Resolved 04/04/2008 (6340 days ago)
Github Issue Link
Github Pull Request
Milestone 3.2
Patch No

History
04/04/2008 04:33:13 PM Jan Schneider Comment #3
Taken from Horde DevelopersHorde Developers
State ⇒ Resolved
Reply to this comment
Committed, thanks. This behavior is following the specs btw, at least 
for vCard objects.
04/04/2008 10:24:04 AM Jan Schneider Assigned to Jan Schneider
Milestone ⇒ 3.2
 
03/30/2008 04:23:48 AM Chuck Hagenbuch Comment #2
State ⇒ Assigned
Assigned to Horde DevelopersHorde Developers
Reply to this comment
Looks okay to me - Jan?
03/29/2008 10:01:27 AM Gunnar Wrobel Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Handling missing ENCODING parameter in iCal date
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ No
New Attachment: HK-GW-iCal_no_ENCODING.patch Download
State ⇒ Unconfirmed
Reply to this comment
iCalendar.php unfolds QUOTED-PRINTABLE encoded lines before parsing them.



The parameter ENCODING=QUOTED-PRINTABLE is expected in these lines.



A blackberry with SyncJe delivers lines like this during a SyncML run:



N;QUOTED-PRINTABLE;CHARSET=UTF-8:Euro=E2=82=AC;Lars=E2=82=AC



ENCODING= is missing here. From the format specs I guess the client is broken.



But iCalendar.php seems to support such broken clients:



                 if ((isset($params['ENCODING'])

                      && String::upper($params['ENCODING']) == 
'QUOTED-PRINTABLE')

                     || isset($params['QUOTED-PRINTABLE'])) {



                     $value = quoted_printable_decode($value);



isset($params['QUOTED-PRINTABLE']) allows to specify QUOTED-PRINTABLE 
as parameter without the leading ENCODING.



If iCalendar.php should support this then I'd suggest to apply the 
attached patch to correct unfolding.

Saved Queries