diff --git a/htdocs/well-known.php b/htdocs/well-known.php index 44f6d0a8..7594947c 100644 --- a/htdocs/well-known.php +++ b/htdocs/well-known.php @@ -1,4 +1,4 @@ -allow_unauthenticated = true; $session = new HTTPAuthSession(); -if ( ! isset ( $request ) ) -{ + +if ( ! isset ( $request ) ) { require_once('CalDAVRequest.php'); $request = new CalDAVRequest(); } + +switch ( $request->path ) { + case '/.well-known/caldav': + case '/.well-known/carddav': + header('Location: ' . ConstructURL('/',true) ); + exit(0); +} + + + if ( $c->enable_scheduling != true ) { $request->DoResponse( 404, translate('The application program does not understand that request.') );