Additionally check "://".

This commit is contained in:
Black Hat 2018-08-14 14:59:02 +08:00
parent 667c02f668
commit 1c48050fc0
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ Page {
}
onClicked: {
if (!serverField.text.startsWith("http")) {
if (!(serverField.text.startsWith("http") && serverField.text.includes("://"))) {
loginButtonTooltip.text = "Server address should start with http(s)://"
loginButtonTooltip.open()
return