From 291b540aa75d8f642005c7b0cc3e430ac648c11d Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 23 Oct 2011 07:59:05 +0000 Subject: [PATCH] fix for iCal4OL using WinHTTP only supporting a certain header length --- calendar/inc/class.calendar_groupdav.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/calendar/inc/class.calendar_groupdav.inc.php b/calendar/inc/class.calendar_groupdav.inc.php index eea31e287b..d4cf285ca5 100644 --- a/calendar/inc/class.calendar_groupdav.inc.php +++ b/calendar/inc/class.calendar_groupdav.inc.php @@ -530,6 +530,11 @@ class calendar_groupdav extends groupdav_handler if (!$prefix) $user = null; // /infolog/ does not imply setting the current user (for new entries it's done anyway) + // fix for iCal4OL using WinHTTP only supporting a certain header length + if (isset($_SERVER['HTTP_IF_SCHEDULE']) && !isset($_SERVER['HTTP_IF_SCHEDULE_TAG_MATCH'])) + { + $_SERVER['HTTP_IF_SCHEDULE_TAG_MATCH'] = $_SERVER['HTTP_IF_SCHEDULE']; + } $return_no_access = true; // as handled by importVCal anyway and allows it to set the status for participants $oldEvent = $this->_common_get_put_delete('PUT',$options,$id,$return_no_access, isset($_SERVER['HTTP_IF_SCHEDULE_TAG_MATCH'])); // dont fail with 412 Precondition Failed in that case