From 84009aa6dd365c77e7a6ba2a55790cf274d14a49 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Tue, 21 Sep 2010 17:25:25 +0200 Subject: [PATCH] There may be several DAV headers (Bug #9251). --- kronolith/lib/Driver/Ical.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kronolith/lib/Driver/Ical.php b/kronolith/lib/Driver/Ical.php index dd7578da3..6f72ce6c0 100644 --- a/kronolith/lib/Driver/Ical.php +++ b/kronolith/lib/Driver/Ical.php @@ -584,6 +584,9 @@ class Kronolith_Driver_Ical extends Kronolith_Driver if ($dav = $response->getHeader('dav')) { /* Check for DAV support. */ + if (is_array($dav)) { + $dav = implode (',', $dav); + } $this->_davSupport = preg_split('/,\s*/', $dav); if (!in_array('3', $this->_davSupport)) { throw new Kronolith_Exception(_("This remote server only supports an outdated WebDAV protocol.")); -- 2.11.0