Server verhindert beim OSX Client einen Delete

This commit is contained in:
Steven 2012-02-13 17:15:31 +01:00
parent c9db88aa3b
commit 4cc3a3096a
2 changed files with 5 additions and 1 deletions

View file

@ -648,7 +648,7 @@ class Sabre_DAV_Server {
* @return void
*/
protected function httpDelete($uri) {
if (!$this->broadcastEvent('beforeUnbind',array($uri))) return;
$this->tree->delete($uri);

View file

@ -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);
}