#88: Fix hostname scheme prefix handling

This commit is contained in:
Ryan Harg 2021-09-03 11:12:23 +02:00
parent 4e0279a75a
commit fec95a7332
No known key found for this signature in database
GPG Key ID: 89106F3A84E6958C
2 changed files with 2 additions and 1 deletions

View File

@ -121,7 +121,7 @@ class LoginActivity : AppCompatActivity() {
if (hostname.isEmpty()) {
return getString(R.string.login_error_hostname)
}
if (!cleartext && hostname.startsWith("http")) {
if (!cleartext && hostname.startsWith("http://")) {
return getString(R.string.login_error_hostname_https)
}
return null

View File

@ -0,0 +1 @@
Fix handling of hostname 'https://' scheme prefix (#88)