mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-22 17:16:06 +00:00
Ensure Content-location headers are properly constructed URLs.
This commit is contained in:
parent
1f9b93b1c6
commit
462a270264
@ -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 == '/' ) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user