mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-12 10:42:21 -05:00
another fix for broken office xml
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@22 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
d0c1710ab9
commit
5bb3bab6c0
@ -1078,6 +1078,8 @@ public class ExchangeSession {
|
||||
ByteArrayInputStream bais = new ByteArrayInputStream(htmlBody
|
||||
// quick fix remove default office namespace
|
||||
.replaceFirst("xmlns=\".*\"", "")
|
||||
// quick fix remove inline processing instructions
|
||||
.replaceAll("<\\?xml:namespace", "")
|
||||
.getBytes("UTF-8"));
|
||||
XmlDocument xmlBody = tidyDocument(bais);
|
||||
List<Attribute> htmlBodyImgList = xmlBody.getNodes("//img/@src");
|
||||
|
Loading…
Reference in New Issue
Block a user