From 7419375ab7d9b41d4c4952b8773766edd82e0c09 Mon Sep 17 00:00:00 2001 From: mguessan Date: Mon, 19 Jul 2010 15:42:25 +0000 Subject: [PATCH] Carddav: encode photo href git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1207 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/exchange/dav/DavExchangeSession.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/davmail/exchange/dav/DavExchangeSession.java b/src/java/davmail/exchange/dav/DavExchangeSession.java index 9ec63b48..a0c9ea30 100644 --- a/src/java/davmail/exchange/dav/DavExchangeSession.java +++ b/src/java/davmail/exchange/dav/DavExchangeSession.java @@ -1227,7 +1227,7 @@ public class DavExchangeSession extends ExchangeSession { public ExchangeSession.ContactPhoto getContactPhoto(ExchangeSession.Contact contact) throws IOException { ContactPhoto contactPhoto = null; if ("true".equals(contact.get("haspicture"))) { - final GetMethod method = new GetMethod(contact.getHref() + "/ContactPicture.jpg"); + final GetMethod method = new GetMethod(URIUtil.encodePath(contact.getHref()) + "/ContactPicture.jpg"); method.setRequestHeader("Translate", "f"); method.setRequestHeader("Accept-Encoding", "gzip");