Remove white space from URIs

This commit is contained in:
M66B 2021-04-10 12:33:58 +02:00
parent 2b07ec7956
commit ede2d20ec8
1 changed files with 2 additions and 1 deletions

View File

@ -4315,8 +4315,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
} }
} }
private boolean onOpenLink(final Uri uri, String title, boolean always_confirm) { private boolean onOpenLink(Uri uri, String title, boolean always_confirm) {
Log.i("Opening uri=" + uri + " title=" + title); Log.i("Opening uri=" + uri + " title=" + title);
uri = Uri.parse(uri.toString().replaceAll("\\s+", ""));
if ("email.faircode.eu".equals(uri.getHost()) && "/activate/".equals(uri.getPath())) { if ("email.faircode.eu".equals(uri.getHost()) && "/activate/".equals(uri.getPath())) {
try { try {