From 7736e01a0ae928238371bc783e0fa8472fa8df92 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Sat, 3 Nov 2007 20:45:33 +1300 Subject: [PATCH] If we can't split the path then default the username from the session. --- inc/CalDAVPrincipal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/CalDAVPrincipal.php b/inc/CalDAVPrincipal.php index 0c98cc4c..3034e30a 100644 --- a/inc/CalDAVPrincipal.php +++ b/inc/CalDAVPrincipal.php @@ -118,7 +118,7 @@ class CalDAVPrincipal if ( $path == '/' || $path == '' ) { dbg_error_log( "principal", "No useful path split possible" ); - return false; + return $session->username; } $path_split = explode('/', $path );