From 9a430130d84e9512ebaecdb02d634c367b63de46 Mon Sep 17 00:00:00 2001
From: Paul Kallnbach
Date: Tue, 22 May 2018 15:17:28 +0000
Subject: [PATCH] increase maximum resource size to infinity. this might be
potentially dangerous but it is what's claimed in inc/caldav-MKCOL.php:
case 'urn:ietf:params:xml:ns:caldav:max-resource-size': /** Ignored, since
we will support arbitrary size */ this solves issue #80 (large contact photos
not being accepted by the server). we might wanna think about a larger limit
instead, e.g. increase the limit from 65kB to 6.5MB
---
inc/DAVResource.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/inc/DAVResource.php b/inc/DAVResource.php
index 67c68e60..4b34cee1 100644
--- a/inc/DAVResource.php
+++ b/inc/DAVResource.php
@@ -1842,7 +1842,7 @@ EOQRY;
case 'urn:ietf:params:xml:ns:carddav:max-resource-size':
if ( ! $this->_is_collection || !$this->_is_addressbook ) return false;
- $reply->NSElement($prop, $tag, 65500 );
+ $reply->NSElement($prop, $tag, '' );
break;
case 'urn:ietf:params:xml:ns:carddav:supported-address-data':