fix replacing of 4MB Unicode Chars in cal props table
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
This commit is contained in:
parent
482805d16f
commit
f75b56fc5d
|
@ -2009,7 +2009,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
||||||
if (in_array($property->name, self::$indexProperties)) {
|
if (in_array($property->name, self::$indexProperties)) {
|
||||||
$value = $property->getValue();
|
$value = $property->getValue();
|
||||||
// is this a shitty db?
|
// is this a shitty db?
|
||||||
if ($this->db->supports4ByteText()) {
|
if (!$this->db->supports4ByteText()) {
|
||||||
$value = preg_replace('/[\x{10000}-\x{10FFFF}]/u', "\xEF\xBF\xBD", $value);
|
$value = preg_replace('/[\x{10000}-\x{10FFFF}]/u', "\xEF\xBF\xBD", $value);
|
||||||
}
|
}
|
||||||
$value = substr($value, 0, 254);
|
$value = substr($value, 0, 254);
|
||||||
|
|
|
@ -539,7 +539,7 @@ CREATED;VALUE=DATE-TIME:20130910T125139Z
|
||||||
UID:47d15e3ec8
|
UID:47d15e3ec8
|
||||||
LAST-MODIFIED;VALUE=DATE-TIME:20130910T125139Z
|
LAST-MODIFIED;VALUE=DATE-TIME:20130910T125139Z
|
||||||
DTSTAMP;VALUE=DATE-TIME:20130910T125139Z
|
DTSTAMP;VALUE=DATE-TIME:20130910T125139Z
|
||||||
SUMMARY:123 Event
|
SUMMARY:123 Event 🙈
|
||||||
DTSTART;VALUE=DATE-TIME:20130912T130000Z
|
DTSTART;VALUE=DATE-TIME:20130912T130000Z
|
||||||
DTEND;VALUE=DATE-TIME:20130912T140000Z
|
DTEND;VALUE=DATE-TIME:20130912T140000Z
|
||||||
ATTENDEE;CN=test:mailto:foo@bar.com
|
ATTENDEE;CN=test:mailto:foo@bar.com
|
||||||
|
|
Loading…
Reference in New Issue