mirror of https://github.com/M66B/FairEmail.git
Fixed hyperlinks starting/ending with spaces
This commit is contained in:
parent
9a9b43fc91
commit
74541393ab
|
@ -6545,9 +6545,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
Log.i("Opening uri=" + uri + " title=" + title + " always confirm=" + always_confirm);
|
Log.i("Opening uri=" + uri + " title=" + title + " always confirm=" + always_confirm);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
uri = Uri.parse(uri.toString().replaceAll("[\r\n]", ""));
|
uri = Uri.parse(uri.toString().trim().replaceAll("[\r\n]", ""));
|
||||||
if (UriHelper.isHyperLink(uri))
|
if (UriHelper.isHyperLink(uri))
|
||||||
uri = Uri.parse(uri.toString().trim().replaceAll("\\s+", "+"));
|
uri = Uri.parse(uri.toString().replaceAll("\\s+", "+"));
|
||||||
|
|
||||||
if (ProtectedContent.isProtectedContent(uri)) {
|
if (ProtectedContent.isProtectedContent(uri)) {
|
||||||
Bundle args = new Bundle();
|
Bundle args = new Bundle();
|
||||||
|
|
Loading…
Reference in New Issue