From 9f32fcf5775eea30e37676d9e941a4b6a3c0a3cb Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 22 Jul 2023 06:55:32 +0200 Subject: [PATCH] Fix http/s URIs --- app/src/main/java/eu/faircode/email/UriHelper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/UriHelper.java b/app/src/main/java/eu/faircode/email/UriHelper.java index f2b7e3314c..d44e4e2f81 100644 --- a/app/src/main/java/eu/faircode/email/UriHelper.java +++ b/app/src/main/java/eu/faircode/email/UriHelper.java @@ -460,7 +460,8 @@ public class UriHelper { } static Uri fix(Uri uri) { - if ("HTTP".equals(uri.getScheme()) || "HTTPS".equals(uri.getScheme())) { + if ((!"http".equals(uri.getScheme()) && "http".equalsIgnoreCase(uri.getScheme())) || + (!"https".equals(uri.getScheme()) && "https".equalsIgnoreCase(uri.getScheme()))) { String u = uri.toString(); int semi = u.indexOf(':'); if (semi > 0)