am 290c6c1d: am 7b8ce2fa: Merge "Log SslErrors from captive portal sign in app." into mnc-dev

* commit '290c6c1d0df2a11f95cf464fcd95c5f361a4422d':
  Log SslErrors from captive portal sign in app.
This commit is contained in:
Paul Jensen
2015-06-09 17:31:54 +00:00
committed by Android Git Automerger

View File

@@ -336,7 +336,10 @@ public class CaptivePortalLoginActivity extends Activity {
@Override
public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
Log.w(TAG, "SSL error; displaying SSL warning.");
Log.w(TAG, "SSL error (error: " + error.getPrimaryError() + " host: " +
// Only show host to avoid leaking private info.
Uri.parse(error.getUrl()).getHost() + " certificate: " +
error.getCertificate() + "); displaying SSL warning.");
final String html = String.format(SSL_ERROR_HTML, getString(R.string.ssl_error_warning),
getString(R.string.ssl_error_example), mBrowserBailOutToken,
getString(R.string.ssl_error_continue));