From 15416b8c5a49d4d617ec81b10ba02ed0e76f854c Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 21 Mar 2023 13:10:14 +0100 Subject: [PATCH] Fix issue #833 - URL protocol in upper case --- .../main/java/app/fedilab/android/mastodon/helper/Helper.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/app/fedilab/android/mastodon/helper/Helper.java b/app/src/main/java/app/fedilab/android/mastodon/helper/Helper.java index 37826982..34adc4e9 100644 --- a/app/src/main/java/app/fedilab/android/mastodon/helper/Helper.java +++ b/app/src/main/java/app/fedilab/android/mastodon/helper/Helper.java @@ -665,6 +665,8 @@ public class Helper { .build(); builder.setDefaultColorSchemeParams(defaultColors); CustomTabsIntent customTabsIntent = builder.build(); + url = url.replace("HTTPS://", "https://"); + url = url.replace("HTTP://", "http://"); try { customTabsIntent.launchUrl(context, Uri.parse(url)); } catch (Exception e) {