Fixed the lack of warning when a non trusted SSL certificate is found if the user creates a new account without the protocol prefix in the URL and both HTTPS and HTTP are available in the server

This commit is contained in:
David A. Velasco 2012-09-10 10:53:11 +02:00
parent 3b0692cb38
commit f3d61ef578

View file

@ -121,7 +121,7 @@ public class ConnectionCheckOperation extends RemoteOperation {
if (tryConnection(client, "https://" + mUrl + AccountUtils.STATUS_PATH)) {
return new RemoteOperationResult(RemoteOperationResult.ResultCode.OK_SSL);
} else if (mLatestResult.isSslRecoverableException()) {
} else if (!mLatestResult.isSslRecoverableException()) {
Log.d(TAG, "establishing secure connection failed, trying non secure connection");
client.setBaseUri(Uri.parse("http://" + mUrl + AccountUtils.STATUS_PATH));