MCPcopy Create free account
hub / github.com/apache/httpd / val_url_print

Function val_url_print

modules/md/mod_md_status.c:352–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350}
351
352static void val_url_print(status_ctx *ctx, const status_info *info,
353 const char*url, const char *proto, int i)
354{
355 const char *s;
356
357 (void)proto;
358 if (url) {
359 s = md_get_ca_name_from_url(ctx->p, url);
360 }
361 else {
362 return;
363 }
364 if (HTML_STATUS(ctx)) {
365 apr_brigade_printf(ctx->bb, NULL, NULL, "%s<a href='%s'>%s</a>",
366 i? " " : "",
367 ap_escape_html2(ctx->p, url, 1),
368 ap_escape_html2(ctx->p, s, 1));
369 }
370 else if (i == 0) {
371 apr_brigade_printf(ctx->bb, NULL, NULL, "%s%sName: %s\n",
372 ctx->prefix, info->label, s);
373 apr_brigade_printf(ctx->bb, NULL, NULL, "%s%sURL: %s\n",
374 ctx->prefix, info->label, url);
375 }
376 else {
377 apr_brigade_printf(ctx->bb, NULL, NULL, "%s%sName%d: %s\n",
378 ctx->prefix, info->label, i, s);
379 apr_brigade_printf(ctx->bb, NULL, NULL, "%s%sURL%d: %s\n",
380 ctx->prefix, info->label, i, url);
381 }
382}
383
384static void si_val_ca_urls(status_ctx *ctx, md_json_t *mdj, const status_info *info)
385{

Callers 1

si_val_ca_urlsFunction · 0.85

Calls 2

md_get_ca_name_from_urlFunction · 0.85
ap_escape_html2Function · 0.85

Tested by

no test coverage detected