mirror of
https://github.com/ultrasonic/ultrasonic
synced 2025-01-30 08:54:51 +01:00
Made the hostname part of the server url mandatory
This commit is contained in:
parent
b7c21e4aac
commit
31853cc8bc
@ -179,7 +179,11 @@ internal class EditServerActivity : AppCompatActivity() {
|
||||
try {
|
||||
val urlString = serverAddressEditText!!.editText?.text.toString()
|
||||
url = URL(urlString)
|
||||
if (urlString != urlString.trim(' ') || urlString.contains("@")) {
|
||||
if (
|
||||
urlString != urlString.trim(' ') ||
|
||||
urlString.contains("@") ||
|
||||
url.host.isNullOrBlank()
|
||||
) {
|
||||
throw MalformedURLException()
|
||||
}
|
||||
serverAddressEditText!!.error = null
|
||||
|
Loading…
x
Reference in New Issue
Block a user