From 0e1ba6c469af3b97c8edd9df8faffeb705ed5bfa Mon Sep 17 00:00:00 2001 From: mguessan Date: Wed, 4 Mar 2009 17:21:15 +0000 Subject: [PATCH] Caldav: fix regressions after refactoring git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@416 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/caldav/CaldavConnection.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/java/davmail/caldav/CaldavConnection.java b/src/java/davmail/caldav/CaldavConnection.java index c0693f2a..09386710 100644 --- a/src/java/davmail/caldav/CaldavConnection.java +++ b/src/java/davmail/caldav/CaldavConnection.java @@ -279,7 +279,7 @@ public class CaldavConnection extends AbstractConnection { } protected void appendEventResponse(CaldavResponse response, CaldavRequest request, String path, ExchangeSession.Event event) throws IOException { - String eventPath = event.getPath().replaceAll("<", "<").replaceAll(">", ">"); + String eventPath = event.getPath().replaceAll("<", "<").replaceAll(">", ">").replaceAll("&", "&"); response.startResponse("/users/" + session.getEmail() + "/" + path + "/" + URIUtil.encodeWithinQuery(eventPath)); response.startPropstat(); if (request.hasProperty("calendar-data")) { @@ -336,7 +336,7 @@ public class CaldavConnection extends AbstractConnection { base64Encode(session.getInboxCtag())); } if (request.hasProperty("displayname")) { - response.appendProperty("", "inbox"); + response.appendProperty("D:displayname", "inbox"); } response.endPropStatOK(); response.endResponse(); @@ -355,7 +355,7 @@ public class CaldavConnection extends AbstractConnection { "0"); } if (request.hasProperty("displayname")) { - response.appendProperty("", "outbox"); + response.appendProperty("D:displayname", "outbox"); } response.endPropStatOK(); response.endResponse(); @@ -510,7 +510,7 @@ public class CaldavConnection extends AbstractConnection { response.startPropstat(); if (request.hasProperty("calendar-home-set")) { - response.appendProperty("C:calendar-home-set", "/users/" + actualPrincipal + ""); + response.appendProperty("C:calendar-home-set", "/users/" + actualPrincipal + "/calendar"); } if (request.hasProperty("calendar-user-address-set")) {