mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-04-18 14:00:17 +00:00
Another attempt at resolving the URI vs. path issue. See RFC4918, 8.3
This commit is contained in:
parent
b491ee17fd
commit
3f5b2ae67a
@ -72,6 +72,15 @@ class CalDAVRequest
|
||||
|
||||
$this->user_agent = ((isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : "Probably Mulberry"));
|
||||
|
||||
/**
|
||||
* In general we systematically return Absolute URI hrefs. Unfortunately some
|
||||
* software doesn't expect this to happen (iCal, SOHO Organizer, ???) and so we
|
||||
* need to hack around these programs. RFC4918 section 8.3 gives details.
|
||||
*/
|
||||
if ( preg_match( '/(iCal 3.0|SOHO Organizer|ChronosCalendarsService)/', $this->user_agent ) ) {
|
||||
$c->protocol_server_port_script = preg_replace('#^(http|caldav)s?://[^/]+#', '', $c->protocol_server_port_script );
|
||||
}
|
||||
|
||||
/**
|
||||
* A variety of requests may set the "Depth" header to control recursion
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user