mirror of
				https://framagit.org/tom79/fedilab-tube
				synced 2025-06-05 21:09:11 +02:00 
			
		
		
		
	Fix issue #70
This commit is contained in:
		| @@ -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(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user