mirror of
https://framagit.org/tom79/fedilab-tube
synced 2025-02-08 08:08:49 +01:00
Fix issue #70
This commit is contained in:
parent
3ed5248c2a
commit
8c95554d8e
@ -149,6 +149,14 @@ public class LoginActivity extends AppCompatActivity {
|
||||
} catch (MalformedURLException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
} else if (instance.endsWith("/")) {
|
||||
try {
|
||||
URL url = new URL("https://" + instance);
|
||||
instance = url.getHost();
|
||||
host = instance;
|
||||
} catch (MalformedURLException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
if (!Patterns.WEB_URL.matcher("https://" + instance).matches()) {
|
||||
Toasty.error(LoginActivity.this, getString(R.string.not_valide_instance)).show();
|
||||
|
Loading…
x
Reference in New Issue
Block a user