1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-23 12:51:16 +00:00

Verify certificates of web GUI (#919)

The check of the SDK version is wrong.
This commit is contained in:
Unrud 2017-07-17 05:24:06 +02:00 committed by Felix Ableitner
parent d4fc8d3605
commit b09abf320e

View file

@ -60,7 +60,7 @@ public class WebGuiActivity extends SyncthingActivity
public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) { public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
try { try {
int sdk = android.os.Build.VERSION.SDK_INT; int sdk = android.os.Build.VERSION.SDK_INT;
if (sdk >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { if (sdk < Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
// The mX509Certificate field is not available for ICS- devices // The mX509Certificate field is not available for ICS- devices
Log.w(TAG, "Skipping certificate check for devices <ICS"); Log.w(TAG, "Skipping certificate check for devices <ICS");
handler.proceed(); handler.proceed();