From d8448c3510507512b03f65e19714c68bdd2ab793 Mon Sep 17 00:00:00 2001 From: cketti Date: Tue, 17 Feb 2015 23:42:26 +0100 Subject: [PATCH] Only make http or https URIs trigger the "Show pictures" button --- k9mail/src/main/java/com/fsck/k9/helper/Utility.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/k9mail/src/main/java/com/fsck/k9/helper/Utility.java b/k9mail/src/main/java/com/fsck/k9/helper/Utility.java index 6be32825d..aa93f7d8c 100644 --- a/k9mail/src/main/java/com/fsck/k9/helper/Utility.java +++ b/k9mail/src/main/java/com/fsck/k9/helper/Utility.java @@ -393,7 +393,8 @@ public class Utility { public static boolean hasExternalImages(final String message) { Matcher imgMatches = IMG_PATTERN.matcher(message); while (imgMatches.find()) { - if (!imgMatches.group(1).equals("content")) { + String uriScheme = imgMatches.group(1); + if (uriScheme.equals("http") || uriScheme.equals("https")) { if (K9.DEBUG) { Log.d(K9.LOG_TAG, "External images found"); }