- fixed adding of new contacts

- improved checking of uris
This commit is contained in:
Juha Heinanen
2018-08-11 19:10:35 +03:00
parent bb2dfbe5ab
commit 69c4cad902
5 changed files with 67 additions and 27 deletions
@@ -186,7 +186,7 @@ class AccountActivity : AppCompatActivity() {
if (ob != acc.outbound) {
val outbound = ArrayList<String>()
for (i in ob.indices) {
if ((ob[i] == "") || Api.uri_decode(ob[i])) {
if ((ob[i] == "") || Utils.checkOutboundUri(ob[i])) {
if (account_set_outbound(acc.accp, ob[i], i) == 0) {
if (ob[i] != "")
outbound.add(account_outbound(acc.accp, i))
@@ -196,7 +196,7 @@ class AccountActivity : AppCompatActivity() {
}
} else {
Utils.alertView(this, "Notice",
"Invalid Outbound Proxy: ${ob[i]}")
"Invalid Proxy Server URI: ${ob[i]}")
return false
}
}