mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 23:29:31 +01:00
* CalDAV/Calendar/InfoLog: do NOT use ENCODING=QUOTED-PRINTABLE for iCal 2.0, cuts eg. description off in TB, if containing non-ascii chars
This commit is contained in:
parent
56d869dc4b
commit
f2ae5a5f3c
@ -987,8 +987,8 @@ class calendar_ical extends calendar_boupdate
|
|||||||
translation::charset(),$charset);
|
translation::charset(),$charset);
|
||||||
$content = $valueData . implode(';', $valuesData);
|
$content = $valueData . implode(';', $valuesData);
|
||||||
|
|
||||||
if (preg_match('/[^\x20-\x7F]/', $content) ||
|
if ($version == '1.0' && (preg_match('/[^\x20-\x7F]/', $content) ||
|
||||||
($paramData['CN'] && preg_match('/[^\x20-\x7F]/', $paramData['CN'])))
|
($paramData['CN'] && preg_match('/[^\x20-\x7F]/', $paramData['CN']))))
|
||||||
{
|
{
|
||||||
$paramData['CHARSET'] = $charset;
|
$paramData['CHARSET'] = $charset;
|
||||||
switch ($this->productManufacturer)
|
switch ($this->productManufacturer)
|
||||||
@ -998,7 +998,6 @@ class calendar_ical extends calendar_boupdate
|
|||||||
{
|
{
|
||||||
$paramData['ENCODING'] = 'QUOTED-PRINTABLE';
|
$paramData['ENCODING'] = 'QUOTED-PRINTABLE';
|
||||||
}
|
}
|
||||||
/* disable automatic QP encoding eg. for new-lines as it also encodes non-ascii/utf-8 which TB does NOT decode
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$paramData['CHARSET'] = '';
|
$paramData['CHARSET'] = '';
|
||||||
@ -1010,7 +1009,7 @@ class calendar_ical extends calendar_boupdate
|
|||||||
{
|
{
|
||||||
$paramData['ENCODING'] = '';
|
$paramData['ENCODING'] = '';
|
||||||
}
|
}
|
||||||
}*/
|
}
|
||||||
break;
|
break;
|
||||||
case 'funambol':
|
case 'funambol':
|
||||||
$paramData['ENCODING'] = 'FUNAMBOL-QP';
|
$paramData['ENCODING'] = 'FUNAMBOL-QP';
|
||||||
|
@ -281,7 +281,7 @@ class infolog_ical extends infolog_bo
|
|||||||
$options = array();
|
$options = array();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (preg_match('/[^\x20-\x7F]/', $value))
|
if ($_version == '1.0' && preg_match('/[^\x20-\x7F]/', $value))
|
||||||
{
|
{
|
||||||
$options['CHARSET'] = $charset;
|
$options['CHARSET'] = $charset;
|
||||||
switch ($this->productManufacturer)
|
switch ($this->productManufacturer)
|
||||||
|
Loading…
Reference in New Issue
Block a user