Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5b49112a authored by Daniel Applebaum's avatar Daniel Applebaum
Browse files

Fix linkification of text/plain messages with URLs starting at index 0

of the body.

Possibly the fix for issue 213 and maybe also issue 55

parent 65bbc7e6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -839,7 +839,7 @@ public class MessageView extends Activity
                        StringBuffer sb = new StringBuffer();
                        while (m.find()) {
                            int start = m.start();
                            if (start != 0 && text.charAt(start - 1) != '@') {
                            if (start == 0 || (start != 0 && text.charAt(start - 1) != '@')) {
                                m.appendReplacement(sb, "<a href=\"$0\">$0</a>");
                            }
                            else {