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

Function si_val_url

modules/md/mod_md_status.c:200–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200static void si_val_url(status_ctx *ctx, md_json_t *mdj, const status_info *info)
201{
202 const char *url, *s;
203
204 s = url = md_json_gets(mdj, info->key, NULL);
205 if (!url) return;
206 s = md_get_ca_name_from_url(ctx->p, url);
207 if (HTML_STATUS(ctx)) {
208 apr_brigade_printf(ctx->bb, NULL, NULL, "<a href='%s'>%s</a>",
209 ap_escape_html2(ctx->p, url, 1),
210 ap_escape_html2(ctx->p, s, 1));
211 }
212 else {
213 apr_brigade_printf(ctx->bb, NULL, NULL, "%s%sName: %s\n",
214 ctx->prefix, info->label, s);
215 apr_brigade_printf(ctx->bb, NULL, NULL, "%s%sURL: %s\n",
216 ctx->prefix, info->label, url);
217 }
218}
219
220static void print_date(status_ctx *ctx, apr_time_t timestamp, const char *title)
221{

Callers

nothing calls this directly

Calls 3

md_json_getsFunction · 0.85
md_get_ca_name_from_urlFunction · 0.85
ap_escape_html2Function · 0.85

Tested by

no test coverage detected