Loading k9mail/build.gradle +1 −1 Original line number Diff line number Diff line Loading @@ -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' Loading k9mail/src/test/java/com/fsck/k9/message/html/HtmlSanitizerTest.java +11 −0 Original line number Diff line number Diff line Loading @@ -189,4 +189,15 @@ public class HtmlSanitizerTest { assertEquals("<html><head><style>keep this</style></head><body></body></html>", toCompactString(result)); } @Test public void shouldRemoveIFrames() { String html = "<html><body>" + "<iframe src=\"http://www.google.com\" />" + "</body></html>"; Document result = htmlSanitizer.sanitize(html); assertEquals("<html><head></head><body></body></html>", toCompactString(result)); } } Loading
k9mail/build.gradle +1 −1 Original line number Diff line number Diff line Loading @@ -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' Loading
k9mail/src/test/java/com/fsck/k9/message/html/HtmlSanitizerTest.java +11 −0 Original line number Diff line number Diff line Loading @@ -189,4 +189,15 @@ public class HtmlSanitizerTest { assertEquals("<html><head><style>keep this</style></head><body></body></html>", toCompactString(result)); } @Test public void shouldRemoveIFrames() { String html = "<html><body>" + "<iframe src=\"http://www.google.com\" />" + "</body></html>"; Document result = htmlSanitizer.sanitize(html); assertEquals("<html><head></head><body></body></html>", toCompactString(result)); } }