Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9041d925 authored by Kristian Monsen's avatar Kristian Monsen
Browse files

Fix for bug 5100096 Repeated Security Waring

Only giving the host to SslError.

Change-Id: I6112643cf25293348ff20193e67da5f52063ffa2
parent 1d124d50
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -43,6 +43,7 @@ import junit.framework.Assert;
import java.io.IOException;
import java.io.InputStream;
import java.lang.ref.WeakReference;
import java.net.URL;
import java.net.URLEncoder;
import java.nio.charset.Charsets;
import java.security.PrivateKey;
@@ -1171,7 +1172,8 @@ class BrowserFrame extends Handler {
            X509Certificate cert = new X509CertImpl(cert_der);
            SslCertificate sslCert = new SslCertificate(cert);
            if (JniUtil.useChromiumHttpStack()) {
                ssl_error = SslError.SslErrorFromChromiumErrorCode(cert_error, sslCert, url);
                ssl_error = SslError.SslErrorFromChromiumErrorCode(cert_error, sslCert,
                        new URL(url).getHost());
            } else {
                ssl_error = new SslError(cert_error, cert, url);
            }