Ensure resources are always returned with CRLF rather than just LF.

Signed-off-by: Andrew McMillan <andrew@morphoss.com>
This commit is contained in:
Andrew McMillan 2011-01-21 13:42:50 +13:00
parent 6f50f3e2e2
commit 586a506d9b

View File

@ -144,6 +144,8 @@ if ( $dav_resource->IsCollection() ) {
$resource = $dav_resource->resource();
$ic = new iCalComponent( $resource->caldav_data );
$resource->caldav_data = preg_replace( '{(?<!\r)\n}', '\r\n', $resource->caldav_data);
/** Default deny... */
$allowed = false;
if ( $dav_resource->HavePrivilegeTo('all', false) || $session->user_no == $resource->user_no || $session->user_no == $resource->logged_user