From 2a29a7a7c4cc9a43e5f81301a1ddd0e0ad76aa55 Mon Sep 17 00:00:00 2001 From: mguessan Date: Tue, 23 Oct 2007 08:24:17 +0000 Subject: [PATCH] fix invalid exchange html : remove inline uppercase processing instructions git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@85 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/exchange/ExchangeSession.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/java/davmail/exchange/ExchangeSession.java b/src/java/davmail/exchange/ExchangeSession.java index 143fcf6c..5455ea98 100644 --- a/src/java/davmail/exchange/ExchangeSession.java +++ b/src/java/davmail/exchange/ExchangeSession.java @@ -92,7 +92,7 @@ public class ExchangeSession { public static final String CONTENT_TYPE_HEADER = "content-type: "; public static final String CONTENT_TRANSFER_ENCODING_HEADER = "content-transfer-encoding: "; public static final String CONTENT_DISPOSITION_HEADER = "content-disposition: "; - public static final String CONTENT_ID_HEADER = "content-id: "; + public static final String CONTENT_ID_HEADER = "content-id: "; private static final int DEFAULT_KEEP_DELAY = 30; @@ -970,7 +970,7 @@ public class ExchangeSession { headerBuffer.append("\r\n"); os.write(headerBuffer.toString().getBytes()); writeBody(os, bodyHeader); - os.write((mimeHeader.boundary+"--\r\n").getBytes()); + os.write((mimeHeader.boundary + "--\r\n").getBytes()); } } @@ -1327,6 +1327,7 @@ public class ExchangeSession { .replaceFirst("xmlns=\".*\"", "") // quick fix remove inline processing instructions .replaceAll("<\\?xml:namespace", "") + .replaceAll("<\\?XML:NAMESPACE", "") // quick fix invalid comments .replaceAll("