From f3cf86741cb9e2e66dfa5a74219279ddb5b7c5e0 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Wed, 5 Oct 2011 08:41:00 +0200 Subject: [PATCH] Fix handling of .well-known where the base handler is not caldav.php --- htdocs/well-known.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/well-known.php b/htdocs/well-known.php index e44b0db1..588de822 100644 --- a/htdocs/well-known.php +++ b/htdocs/well-known.php @@ -21,7 +21,7 @@ switch ( $request->path ) { $request->DoResponse(301); // Moved permanently // does not return. case '/.well-known/timezone': - header('Location: ' . ConstructURL('/tz.php',true) ); + header('Location: ' . str_replace('/caldav.php', '', ConstructURL('/tz.php',true)) ); $request->DoResponse(301); // Moved permanently // does not return. }