mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-03-13 08:00:15 +00:00
Ensure resources are always returned with CRLF rather than just LF.
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
This commit is contained in:
parent
6f50f3e2e2
commit
586a506d9b
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user