From: Damyan Ivanov Date: Sat, 13 Feb 2021 15:40:22 +0000 (+0200) Subject: profile editor: a bit better check for insecure scheme X-Git-Tag: v0.17.0~139 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=d433ae976a6c50be73214df55b9c460329fe9b46;p=mobile-ledger.git profile editor: a bit better check for insecure scheme --- diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java b/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java index ed73190e..13a8b55a 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java @@ -496,7 +496,8 @@ public class ProfileDetailFragment extends Fragment { if (model.getUseAuthentication()) { String urlText = model.getUrl(); - if (urlText.startsWith("http") && !urlText.startsWith("https")) + if (urlText.startsWith("http://") || + urlText.length() >= 8 && !urlText.startsWith("https://")) showWarning = true; }