From e8c1b24f4b08402b5c8d997451f7ae53262d046e Mon Sep 17 00:00:00 2001 From: mguessan Date: Mon, 25 Jul 2011 12:55:45 +0000 Subject: [PATCH] Caldav: encode @ in current-user-principal git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1746 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/caldav/CaldavConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/davmail/caldav/CaldavConnection.java b/src/java/davmail/caldav/CaldavConnection.java index eede02c4..bdd068b5 100644 --- a/src/java/davmail/caldav/CaldavConnection.java +++ b/src/java/davmail/caldav/CaldavConnection.java @@ -775,7 +775,7 @@ public class CaldavConnection extends AbstractConnection { response.startPropstat(); if (request.hasProperty("current-user-principal")) { - response.appendHrefProperty("D:current-user-principal", "/principals/users/" + session.getEmail()); + response.appendHrefProperty("D:current-user-principal", encodePath("/principals/users/" + session.getEmail())); } response.endPropStatOK(); response.endResponse();