From f3d61ef57832e5ca37f00ec6702207e0f208bb30 Mon Sep 17 00:00:00 2001 From: "David A. Velasco" Date: Mon, 10 Sep 2012 10:53:11 +0200 Subject: [PATCH] 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 --- .../android/authenticator/ConnectionCheckOperation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/owncloud/android/authenticator/ConnectionCheckOperation.java b/src/com/owncloud/android/authenticator/ConnectionCheckOperation.java index 7ed61eabca..17b0dc2317 100644 --- a/src/com/owncloud/android/authenticator/ConnectionCheckOperation.java +++ b/src/com/owncloud/android/authenticator/ConnectionCheckOperation.java @@ -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));