From b28d3c267510d2e80e4730f71ff1fa5f61795499 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Fri, 22 May 2020 10:37:15 +0100 Subject: query/ssl: Include link to view certificate details Signed-off-by: Daniel Silverstone --- content/fetchers/about.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'content/fetchers') diff --git a/content/fetchers/about.c b/content/fetchers/about.c index d7c1f7e7e..532223fbb 100644 --- a/content/fetchers/about.c +++ b/content/fetchers/about.c @@ -2199,6 +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 struct fetch_multipart_data *curmd; /* mutipart data iterator */ /* extract parameters from multipart post data */ @@ -2211,6 +2212,8 @@ static bool fetch_about_query_privacy_handler(struct fetch_about_context *ctx) } } else if (strcmp(curmd->name, "reason") == 0) { reason = curmd->value; + } else if (strcmp(curmd->name, "chainurl") == 0) { + chainurl = curmd->value; } curmd = curmd->next; } @@ -2258,7 +2261,12 @@ static bool fetch_about_query_privacy_handler(struct fetch_about_context *ctx) goto fetch_about_query_ssl_handler_aborted; } } - res = ssenddataf(ctx, "

%s

", reason); + res = ssenddataf(ctx, + "

%s

" + "

%s

", + reason, + chainurl, + messages_get("ViewCertificates")); if (res != NSERROR_OK) { goto fetch_about_query_ssl_handler_aborted; } -- cgit v1.2.3