From 8cb968c4b03e5d5462edec56f31625e9f15a6a15 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 12 Jan 2020 09:18:07 +0000 Subject: composer update sabre/dav --- .../sabre/dav/tests/Sabre/CalDAV/ExpandEventsDoubleEventsTest.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'vendor/sabre/dav/tests/Sabre/CalDAV/ExpandEventsDoubleEventsTest.php') diff --git a/vendor/sabre/dav/tests/Sabre/CalDAV/ExpandEventsDoubleEventsTest.php b/vendor/sabre/dav/tests/Sabre/CalDAV/ExpandEventsDoubleEventsTest.php index 90897f1c5..5e5c153e0 100644 --- a/vendor/sabre/dav/tests/Sabre/CalDAV/ExpandEventsDoubleEventsTest.php +++ b/vendor/sabre/dav/tests/Sabre/CalDAV/ExpandEventsDoubleEventsTest.php @@ -84,11 +84,12 @@ END:VCALENDAR $response = $this->request($request); + $bodyAsString = $response->getBodyAsString(); // Everts super awesome xml parser. $body = substr( - $response->body, - $start = strpos($response->body, 'BEGIN:VCALENDAR'), - strpos($response->body, 'END:VCALENDAR') - $start + 13 + $bodyAsString, + $start = strpos($bodyAsString, 'BEGIN:VCALENDAR'), + strpos($bodyAsString, 'END:VCALENDAR') - $start + 13 ); $body = str_replace(' ', '', $body); -- cgit v1.2.3