From 6ce33f23b9c1a91c1c4625f8ec3ed9da56ce6b39 Mon Sep 17 00:00:00 2001 From: mguessan Date: Thu, 14 Jul 2011 22:20:31 +0000 Subject: [PATCH] Caldav: decode destination path on move git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1735 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 3862e90b..5d029b33 100644 --- a/src/java/davmail/caldav/CaldavConnection.java +++ b/src/java/davmail/caldav/CaldavConnection.java @@ -319,7 +319,7 @@ public class CaldavConnection extends AbstractConnection { sendHttpResponse(status, null); } else if (request.isMove()) { String destinationUrl = request.getHeader("destination"); - session.moveItem(request.path, new URL(destinationUrl).getPath()); + session.moveItem(request.path, URIUtil.decode(new URL(destinationUrl).getPath())); sendHttpResponse(HttpStatus.SC_CREATED, null); } else { sendUnsupported(request);