mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 17:04:14 +01:00
* CalDAV/CardDAV: encoding VT (vertical tab) as it stalls Outlook (CalDav Synchronizer)
This commit is contained in:
parent
e62e27b179
commit
1338090a84
@ -388,7 +388,7 @@ class addressbook_vcal extends addressbook_bo
|
||||
{
|
||||
$options['ENCODING'] = 'FUNAMBOL-QP';
|
||||
}
|
||||
elseif (preg_match('/([\000-\012\015\016\020-\037\075])/', $value))
|
||||
elseif (preg_match(Api\CalDAV\Handler::REQUIRE_QUOTED_PRINTABLE_ENCODING, $value))
|
||||
{
|
||||
$options['ENCODING'] = 'QUOTED-PRINTABLE';
|
||||
}
|
||||
@ -467,7 +467,7 @@ class addressbook_vcal extends addressbook_bo
|
||||
{
|
||||
$options['ENCODING'] = 'FUNAMBOL-QP';
|
||||
}
|
||||
elseif (preg_match('/([\000-\012\015\016\020-\037\075])/', $value))
|
||||
elseif (preg_match(Api\CalDAV\Handler::REQUIRE_QUOTED_PRINTABLE_ENCODING, $value))
|
||||
{
|
||||
$options['ENCODING'] = 'QUOTED-PRINTABLE';
|
||||
}
|
||||
|
@ -114,6 +114,13 @@ abstract class Handler
|
||||
*/
|
||||
var $new_id;
|
||||
|
||||
/**
|
||||
* Regular expression to identify content requiring QUOTED-PRINTABLE encoding
|
||||
*
|
||||
* Used in {addressbook,calendar,infolog}/inc/class.*cal.inc.php
|
||||
*/
|
||||
const REQUIRE_QUOTED_PRINTABLE_ENCODING = '/([\000-\012\013\015\016\020-\037\075])/';
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
|
@ -1034,7 +1034,7 @@ class calendar_ical extends calendar_boupdate
|
||||
else
|
||||
{
|
||||
$paramData['CHARSET'] = '';
|
||||
if (preg_match('/([\000-\012\015\016\020-\037\075])/', $valueData))
|
||||
if (preg_match(Api\CalDAV\Handler::REQUIRE_QUOTED_PRINTABLE_ENCODING, $valueData))
|
||||
{
|
||||
$paramData['ENCODING'] = 'QUOTED-PRINTABLE';
|
||||
}
|
||||
|
@ -309,7 +309,7 @@ class infolog_ical extends infolog_bo
|
||||
{
|
||||
$options['CHARSET'] = '';
|
||||
|
||||
if (preg_match('/([\000-\012\015\016\020-\037\075])/', $value))
|
||||
if (preg_match(Api\CalDAV\Handler::REQUIRE_QUOTED_PRINTABLE_ENCODING, $value))
|
||||
{
|
||||
$options['ENCODING'] = 'QUOTED-PRINTABLE';
|
||||
}
|
||||
@ -990,7 +990,7 @@ class infolog_ical extends infolog_bo
|
||||
{
|
||||
$options['CHARSET'] = '';
|
||||
|
||||
if (preg_match('/([\000-\012\015\016\020-\037\075])/', $value))
|
||||
if (preg_match(Api\CalDAV\Handler::REQUIRE_QUOTED_PRINTABLE_ENCODING, $value))
|
||||
{
|
||||
$options['ENCODING'] = 'QUOTED-PRINTABLE';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user