|
|
@ -123,11 +123,10 @@ public class Bimi {
|
|
|
|
if (TextUtils.isEmpty(l))
|
|
|
|
if (TextUtils.isEmpty(l))
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
Uri ul = Uri.parse(l);
|
|
|
|
Uri ul = Uri.parse(l);
|
|
|
|
if (!"https".equals(ul.getScheme())) {
|
|
|
|
if ("https".equals(ul.getScheme()))
|
|
|
|
Log.e("BIMI insecure img=" + l);
|
|
|
|
throw new MalformedURLException(l);
|
|
|
|
continue;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
URL url = new URL(l);
|
|
|
|
URL url = new URL(l);
|
|
|
|
Log.i("BIMI favicon " + url);
|
|
|
|
Log.i("BIMI favicon " + url);
|
|
|
@ -146,6 +145,9 @@ public class Bimi {
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
|
connection.disconnect();
|
|
|
|
connection.disconnect();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
} catch (MalformedURLException ex) {
|
|
|
|
|
|
|
|
Log.i(ex);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -159,13 +161,11 @@ public class Bimi {
|
|
|
|
if (TextUtils.isEmpty(a))
|
|
|
|
if (TextUtils.isEmpty(a))
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
Uri ua = Uri.parse(a);
|
|
|
|
Uri ua = Uri.parse(a);
|
|
|
|
if (!"https".equals(ua.getScheme())) {
|
|
|
|
if (!"https".equals(ua.getScheme()))
|
|
|
|
Log.e("BIMI insecure pem=" + a);
|
|
|
|
throw new MalformedURLException(a);
|
|
|
|
continue;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
URL url = new URL(a);
|
|
|
|
URL url = new URL(a);
|
|
|
|
Log.i("BIMI PEM " + url);
|
|
|
|
Log.i("BIMI PEM " + url);
|
|
|
|
|
|
|
|
|
|
|
|