Caldav: Workaround for emClient broken href encoding

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1145 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2010-07-07 09:19:22 +00:00
parent d182bcca5e
commit 9371f57285
1 changed files with 3 additions and 3 deletions

View File

@ -1306,8 +1306,8 @@ public class CaldavConnection extends AbstractConnection {
return getPathElement(getPathLength() - 1);
}
protected boolean isIcal3() {
return isUserAgent("DAVKit/3");
protected boolean isBrokenHrefEncoding() {
return isUserAgent("DAVKit/3") || isUserAgent("eM Client/");
}
protected boolean isLightning() {
@ -1379,7 +1379,7 @@ public class CaldavConnection extends AbstractConnection {
if (hrefs == null) {
hrefs = new HashSet<String>();
}
if (isIcal3()) {
if (isBrokenHrefEncoding()) {
hrefs.add(streamReader.getText());
} else {
hrefs.add(URIUtil.decode(encodePlusSign(streamReader.getText())));