From 462a270264b95fab7cc8afe72de964e6271e03de Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Thu, 26 Feb 2009 23:40:16 +1300 Subject: [PATCH] Ensure Content-location headers are properly constructed URLs. --- inc/CalDAVRequest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/CalDAVRequest.php b/inc/CalDAVRequest.php index 288a9c56..27c005e6 100644 --- a/inc/CalDAVRequest.php +++ b/inc/CalDAVRequest.php @@ -208,7 +208,7 @@ class CalDAVRequest if ( $row->dav_name == $this->path."/" ) { $this->path = $row->dav_name; dbg_error_log( "caldav", "Path is actually a collection - sending Content-Location header." ); - header( "Content-Location: $this->path" ); + header( "Content-Location: ".ConstructURL($this->path) ); } $this->collection_id = $row->collection_id; @@ -246,7 +246,7 @@ EOSQL; if ( $this->collection_path == $this->path."/" ) { $this->path .= '/'; dbg_error_log( "caldav", "Path is actually a collection - sending Content-Location header." ); - header( "Content-Location: $this->path" ); + header( "Content-Location: ".ConstructURL($this->path) ); } } else if ( $this->path == '/' ) {