From e201597a8dd9ba0aee21c0afbc699e76efe99efc Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 18 May 2020 21:53:28 +0100 Subject: Page info: Improve certificate fault display style. --- content/fetchers/about.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'content/fetchers') diff --git a/content/fetchers/about.c b/content/fetchers/about.c index 3b8147390..796b39091 100644 --- a/content/fetchers/about.c +++ b/content/fetchers/about.c @@ -1262,9 +1262,16 @@ format_certificate(struct fetch_about_context *ctx, if (cert_info->err != SSL_CERT_ERR_OK) { res = ssenddataf(ctx, - "
\n" - "

%s

\n", + "\n" + "" + "" + "" + "" + "
Fault%s
\n", messages_get_sslcode(cert_info->err)); + if (res != NSERROR_OK) { + return res; + } } res = ssenddataf(ctx, @@ -1359,10 +1366,6 @@ format_certificate(struct fetch_about_context *ctx, return res; } - if (cert_info->err != SSL_CERT_ERR_OK) { - res = ssenddataf(ctx, "
\n"); - } - return res; } -- cgit v1.2.3