"fixed missing CHARSET for CN in ATTENDEE, reported by Hans-Juergen Tappe <tappe(at)hek.uni-karlsruhe.de> on the German list"

This commit is contained in:
Ralf Becker 2008-11-12 13:52:38 +00:00
parent dd5c9728d7
commit bc1b45f873

View File

@ -451,6 +451,7 @@ class calendar_ical extends calendar_boupdate
//echo "$key:$valueID: value=$valueData, param=".print_r($paramDate,true)."\n";
$vevent->setAttribute($key, $valueData, $paramData);
$options = array();
if ($paramData['CN']) $valueData .= $paramData['CN']; // attendees or organizer CN can contain utf-8 content
if($key != 'RRULE' && preg_match('/([\000-\012\015\016\020-\037\075])/',$valueData))
{
$options['ENCODING'] = 'QUOTED-PRINTABLE';