1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-13 03:02:22 -05:00

Caldav: decode destination path on move

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1735 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2011-07-14 22:20:31 +00:00
parent 921070b3d1
commit 6ce33f23b9

View File

@ -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);