From e4f10270b767a4495a93b679310a4b0a2f765c2c Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Mon, 4 Dec 2006 11:34:03 +1300 Subject: [PATCH] Use defined canonicalisation base URL. --- inc/caldav-PROPFIND.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/inc/caldav-PROPFIND.php b/inc/caldav-PROPFIND.php index 68f276f1..c85d13b8 100644 --- a/inc/caldav-PROPFIND.php +++ b/inc/caldav-PROPFIND.php @@ -300,8 +300,7 @@ elseif ( $request->AllowedTo('read') ) { /** * Something that we can handle, at least roughly correctly. */ - $url = sprintf("http://%s:%d%s%s", $_SERVER['SERVER_NAME'], $_SERVER['SERVER_PORT'], $_SERVER['SCRIPT_NAME'], $request->path ); - $url = $_SERVER['SCRIPT_NAME'] . $request->path ; + $url = $c->protocol_server_port_script . $request->path ; $url = preg_replace( '#/$#', '', $url); $responses = get_collection( $request->depth, (isset($request->user_no) ? $request->user_no : $session->user_no), $request->path );