diff --git a/content/fetchers/about.c b/content/fetchers/about.c
index 532223fbb..6bb71a964 100644
--- a/content/fetchers/about.c
+++ b/content/fetchers/about.c
@@ -2199,7 +2199,7 @@ static bool fetch_about_query_privacy_handler(struct fetch_about_context *ctx)
const char *title;
struct nsurl *siteurl = NULL;
char *description = NULL;
- const char *chainurl = "";
+ const char *chainurl = NULL;
const struct fetch_multipart_data *curmd; /* mutipart data iterator */
/* extract parameters from multipart post data */
@@ -2261,16 +2261,24 @@ static bool fetch_about_query_privacy_handler(struct fetch_about_context *ctx)
goto fetch_about_query_ssl_handler_aborted;
}
}
- res = ssenddataf(ctx,
- "
"
- "",
- reason,
- chainurl,
- messages_get("ViewCertificates"));
+
+ if (chainurl == NULL) {
+ res = ssenddataf(ctx,
+ ""
+ "",
+ reason,
+ messages_get("ViewCertificatesNotPossible"));
+ } else {
+ res = ssenddataf(ctx,
+ ""
+ "",
+ reason,
+ chainurl,
+ messages_get("ViewCertificates"));
+ }
if (res != NSERROR_OK) {
goto fetch_about_query_ssl_handler_aborted;
}
-
res = ssenddataf(ctx,
""
"loading_cert_chain, &chainurl);
+ if (err != NSERROR_OK) {
+ goto out;
+ }
+
+ err = fetch_multipart_data_new_kv(¶ms.post_multipart,
+ "chainurl",
+ nsurl_access(chainurl));
+ if (err != NSERROR_OK) {
+ goto out;
+ }
}
err = fetch_multipart_data_new_kv(¶ms.post_multipart,
@@ -1158,20 +1170,6 @@ browser_window__handle_bad_certs(struct browser_window *bw,
goto out;
}
- err = cert_chain_to_query(bw->loading_cert_chain, &chainurl);
-
- if (err != NSERROR_OK) {
- goto out;
- }
-
- err = fetch_multipart_data_new_kv(¶ms.post_multipart,
- "chainurl",
- nsurl_access(chainurl));
-
- if (err != NSERROR_OK) {
- goto out;
- }
-
/* Now we issue the fetch */
bw->internal_nav = true;
err = browser_window__navigate_internal(bw, ¶ms);
diff --git a/resources/FatMessages b/resources/FatMessages
index 4b0b840d6..9b1548514 100644
--- a/resources/FatMessages
+++ b/resources/FatMessages
@@ -1083,6 +1083,11 @@ de.all.ViewCertificates:Zertifikatdetails anzeigen
fr.all.ViewCertificates:Afficher les détails du certificat
it.all.ViewCertificates:Visualizza i dettagli del certificato
nl.all.ViewCertificates:Bekijk certificaatdetails
+en.all.ViewCertificatesNotPossible:Certificate information is not available for viewing
+de.all.ViewCertificatesNotPossible:Zertifikatinformationen können nicht angezeigt werden
+fr.all.ViewCertificatesNotPossible:Les informations du certificat ne sont pas disponibles pour la visualisation
+it.all.ViewCertificatesNotPossible:Le informazioni sul certificato non sono disponibili per la visualizzazione
+nl.all.ViewCertificatesNotPossible:Certificaatinformatie is niet beschikbaar voor weergave
en.all.Proceed:Proceed
de.all.Proceed:Vorgehen
fr.all.Proceed:Procéder