From 396103a5ab087d1ee6c47224fe1c70217a4a78e8 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Wed, 6 Jun 2007 19:13:12 +1200 Subject: [PATCH] Just send back the basename, rather than fancy attempts to strip the leading calendar data. It must be in the current calendar anyway. --- inc/caldav-client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/caldav-client.php b/inc/caldav-client.php index 643714e7..76ece28d 100644 --- a/inc/caldav-client.php +++ b/inc/caldav-client.php @@ -338,7 +338,7 @@ EOXML; } break; case 'DAV::HREF': - $response['href'] = preg_replace( "#^.*/$this->user/$this->calendar/#", "", $v['value'] ); + $response['href'] = basename( $v['value'] ); break; case 'DAV::GETETAG': $response['etag'] = preg_replace('/^"?([^"]+)"?/', '$1', $v['value']);