Fixed UTF8 encoding of content
authorMario Matzulla <mario@matzullas.de>
Sat, 25 Feb 2017 16:23:16 +0000 (17:23 +0100)
committerMario Matzulla <mario@matzullas.de>
Sat, 25 Feb 2017 16:23:16 +0000 (17:23 +0100)
Classes/Hooks/EventService.php

index b56f20d..fde4669 100644 (file)
@@ -73,7 +73,7 @@ class EventService {
                $drawnIcs = $viewObj->drawIcs($masterArray, '', false);
                $table = 'tx_cal_event';
                $where = 'uid = '.$eventObject->getUid();
-               $eventData = Array('tx_caldav_data'=>$drawnIcs);
+               $eventData = Array('tx_caldav_data'=>utf8_encode($drawnIcs));
                $result = $GLOBALS['TYPO3_DB']->exec_UPDATEquery($table,$where,$eventData);
                if (FALSE === $result){
                        throw new \RuntimeException('Could not update event record: '.$GLOBALS ['TYPO3_DB']->sql_error(), 1438367693);