From 36ef7160f5b07b6d90c4a93e9d5334ca3c21b041 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Thu, 10 Sep 2009 23:19:53 +1200 Subject: [PATCH] Make the base URL in a PROPFIND reflect the actual requested URL. --- inc/caldav-PROPFIND.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/caldav-PROPFIND.php b/inc/caldav-PROPFIND.php index 46440607..5fa793df 100644 --- a/inc/caldav-PROPFIND.php +++ b/inc/caldav-PROPFIND.php @@ -778,7 +778,7 @@ $request->UnsupportedRequest($unsupported); // Won't return if there was unsuppo /** * Something that we can handle, at least roughly correctly. */ -$url = ConstructURL( $request->path ); +$url = ConstructURL( isset($request->real_url) ? $request->real_url : $request->path ); $url = preg_replace( '#/$#', '', $url); $responses = array(); if ( $request->IsPrincipal() ) {