From: Jan Schneider Date: Tue, 21 Sep 2010 15:25:25 +0000 (+0200) Subject: There may be several DAV headers (Bug #9251). X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=84009aa6dd365c77e7a6ba2a55790cf274d14a49;p=horde.git There may be several DAV headers (Bug #9251). --- 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."));