summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorSteven <wwjd2@web.de>2012-02-13 17:15:31 +0100
committerSteven <wwjd2@web.de>2012-02-13 23:48:22 +0100
commit4cc3a3096a5ad28a070db12424db586c40457243 (patch)
tree76b6008cf6fe3b8ce999cfba394774788479ccfe /apps
parentc9db88aa3bbea2e65976b50b584f10b792a5d550 (diff)
downloadnextcloud-server-4cc3a3096a5ad28a070db12424db586c40457243.tar.gz
nextcloud-server-4cc3a3096a5ad28a070db12424db586c40457243.zip
Server verhindert beim OSX Client einen Delete
Diffstat (limited to 'apps')
-rw-r--r--apps/calendar/lib/connector_sabre.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/calendar/lib/connector_sabre.php b/apps/calendar/lib/connector_sabre.php
index 263fb7ffde5..47bf4f202e9 100644
--- a/apps/calendar/lib/connector_sabre.php
+++ b/apps/calendar/lib/connector_sabre.php
@@ -206,6 +206,10 @@ class OC_Connector_Sabre_CalDAV extends Sabre_CalDAV_Backend_Abstract {
* @return void
*/
public function deleteCalendar($calendarId) {
+ if(preg_match( '=iCal/[1-4]?.*Mac OS X/10.[1-6](.[0-9])?=', $_SERVER['HTTP_USER_AGENT'] )){
+ throw new Sabre_DAV_Exception_Forbidden("Action is not possible with OSX 10.6.x", 403);
+ }
+
OC_Calendar_Calendar::deleteCalendar($calendarId);
}