From fab31983abac1404f21f20d797275981d65514e3 Mon Sep 17 00:00:00 2001 From: cketti Date: Mon, 17 Feb 2014 18:30:36 +0100 Subject: [PATCH] Fix linkifyText() in the presence of bitcoin URIs --- src/com/fsck/k9/helper/HtmlConverter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/fsck/k9/helper/HtmlConverter.java b/src/com/fsck/k9/helper/HtmlConverter.java index 3ca48580d..f1b88b4e3 100644 --- a/src/com/fsck/k9/helper/HtmlConverter.java +++ b/src/com/fsck/k9/helper/HtmlConverter.java @@ -397,7 +397,7 @@ public class HtmlConverter { Matcher m = Regex.WEB_URL_PATTERN.matcher(prepared); while (m.find()) { int start = m.start(); - if (start == 0 || (start != 0 && text.charAt(start - 1) != '@')) { + if (start == 0 || (start != 0 && prepared.charAt(start - 1) != '@')) { if (m.group().indexOf(':') > 0) { // With no URI-schema we may get "http:/" links with the second / missing m.appendReplacement(outputBuffer, "$0"); } else {