From 339b1ed825514414a0a484027fffde59bdf10ab9 Mon Sep 17 00:00:00 2001 From: Philip Whitehouse Date: Sat, 6 Jan 2018 00:40:02 +0000 Subject: [PATCH] Update JSoup to improve unknown tag handling and test iframe removal --- k9mail/build.gradle | 2 +- .../com/fsck/k9/message/html/HtmlSanitizerTest.java | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/k9mail/build.gradle b/k9mail/build.gradle index 21b8ba388..06301c99d 100644 --- a/k9mail/build.gradle +++ b/k9mail/build.gradle @@ -28,7 +28,7 @@ dependencies { compile "com.squareup.okio:okio:${okioVersion}" compile 'commons-io:commons-io:2.4' compile "com.android.support:support-v4:${androidSupportLibraryVersion}" - compile 'org.jsoup:jsoup:1.10.2' + compile 'org.jsoup:jsoup:1.11.2' compile 'de.cketti.library.changelog:ckchangelog:1.2.1' compile 'com.github.bumptech.glide:glide:3.6.1' compile 'com.splitwise:tokenautocomplete:2.0.7' diff --git a/k9mail/src/test/java/com/fsck/k9/message/html/HtmlSanitizerTest.java b/k9mail/src/test/java/com/fsck/k9/message/html/HtmlSanitizerTest.java index b0d9ab9e1..6082769e1 100644 --- a/k9mail/src/test/java/com/fsck/k9/message/html/HtmlSanitizerTest.java +++ b/k9mail/src/test/java/com/fsck/k9/message/html/HtmlSanitizerTest.java @@ -189,4 +189,15 @@ public class HtmlSanitizerTest { assertEquals("", toCompactString(result)); } + + @Test + public void shouldRemoveIFrames() { + String html = "" + + "