From e1b5d3df6eb602863d58dc265b7cc04cc6f8e389 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gon=C3=A7alo=20Queir=C3=B3s?= <goncalo.queiros@portugalmail.net>
Date: Wed, 14 Dec 2011 17:33:10 +0000
Subject: [PATCH] Major hack to allow access to public calendars
---
framework/Rpc/lib/Horde/Rpc/Webdav.php | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/framework/Rpc/lib/Horde/Rpc/Webdav.php b/framework/Rpc/lib/Horde/Rpc/Webdav.php
index 990fa69..461474a 100644
--- a/framework/Rpc/lib/Horde/Rpc/Webdav.php
+++ b/framework/Rpc/lib/Horde/Rpc/Webdav.php
@@ -946,11 +946,16 @@ class Horde_Rpc_Webdav extends Horde_Rpc
header("X-Dav-Powered-By: ".$this->dav_powered_by);
}
+ $options = Array();
+ $options["path"] = $this->path;
+ $this->_get_ranges($options);
+ $this->GET($options);
+
// check authentication
// for the motivation for not checking OPTIONS requests on / see
// http://pear.php.net/bugs/bug.php?id=5363
if ( ( !(($this->_SERVER['REQUEST_METHOD'] == 'OPTIONS') && ($this->path == "/")))
- && (!$this->_check_auth())) {
+ && (!$this->_check_auth()) && !isset($options['data']) && !isset($options['stream'])) {
// RFC2518 says we must use Digest instead of Basic
// but Microsoft Clients do not support Digest
// and we don't support NTLM and Kerberos
--
1.7.1