Fix handling of .well-known where the base handler is not caldav.php

This commit is contained in:
Andrew McMillan 2011-10-05 08:41:00 +02:00
parent bcb1710d3c
commit f3cf86741c

View File

@ -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.
}