mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
some chars also require encoding for iCal 2+ or vCard 3+
This commit is contained in:
parent
4badda961c
commit
f75b9e93f4
@ -476,6 +476,11 @@ class addressbook_vcal extends addressbook_bo
|
|||||||
unset($options['ENCODING']);
|
unset($options['ENCODING']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// some chars also require encoding for vCard 3+
|
||||||
|
elseif (preg_match(Api\CalDAV\Handler::REQUIRE_QUOTED_PRINTABLE_ENCODING, $value))
|
||||||
|
{
|
||||||
|
$options['ENCODING'] = 'QUOTED-PRINTABLE';
|
||||||
|
}
|
||||||
if ($vcardField == 'TEL' && $entry['tel_prefer'] &&
|
if ($vcardField == 'TEL' && $entry['tel_prefer'] &&
|
||||||
($databaseField == $entry['tel_prefer']))
|
($databaseField == $entry['tel_prefer']))
|
||||||
{
|
{
|
||||||
|
@ -1048,16 +1048,12 @@ class calendar_ical extends calendar_boupdate
|
|||||||
$paramData['ENCODING'] = 'FUNAMBOL-QP';
|
$paramData['ENCODING'] = 'FUNAMBOL-QP';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*
|
// some chars also require encoding for iCal 2+
|
||||||
if (preg_match('/([\000-\012])/', $valueData))
|
elseif (preg_match(Api\CalDAV\Handler::REQUIRE_QUOTED_PRINTABLE_ENCODING, $valueData))
|
||||||
{
|
{
|
||||||
if ($this->log)
|
$paramData['ENCODING'] = 'QUOTED-PRINTABLE';
|
||||||
{
|
|
||||||
error_log(__FILE__.'['.__LINE__.'] '.__METHOD__ .
|
|
||||||
"() Has invalid XML data: $valueData",3,$this->logfile);
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
*/
|
|
||||||
$vevent->setAttribute($key, $valueData, $paramData, true, $valuesData);
|
$vevent->setAttribute($key, $valueData, $paramData, true, $valuesData);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -313,6 +313,11 @@ class infolog_ical extends infolog_bo
|
|||||||
$options['ENCODING'] = 'FUNAMBOL-QP';
|
$options['ENCODING'] = 'FUNAMBOL-QP';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// some chars also require encoding for iCal 2+
|
||||||
|
elseif (preg_match(Api\CalDAV\Handler::REQUIRE_QUOTED_PRINTABLE_ENCODING, $value))
|
||||||
|
{
|
||||||
|
$options['ENCODING'] = 'QUOTED-PRINTABLE';
|
||||||
|
}
|
||||||
$vevent->setAttribute($field, $value, $options);
|
$vevent->setAttribute($field, $value, $options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user