Fixed hyperlinks starting/ending with spaces

This commit is contained in:
M66B 2024-06-08 16:07:53 +02:00
parent 9a9b43fc91
commit 74541393ab
1 changed files with 2 additions and 2 deletions

View File

@ -6545,9 +6545,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
Log.i("Opening uri=" + uri + " title=" + title + " always confirm=" + always_confirm);
try {
uri = Uri.parse(uri.toString().replaceAll("[\r\n]", ""));
uri = Uri.parse(uri.toString().trim().replaceAll("[\r\n]", ""));
if (UriHelper.isHyperLink(uri))
uri = Uri.parse(uri.toString().trim().replaceAll("\\s+", "+"));
uri = Uri.parse(uri.toString().replaceAll("\\s+", "+"));
if (ProtectedContent.isProtectedContent(uri)) {
Bundle args = new Bundle();