MCPcopy Index your code
hub / github.com/apache/httpd / hc_select_exprs

Function hc_select_exprs

modules/proxy/mod_proxy_hcheck.c:1231–1254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1229}
1230
1231static void hc_select_exprs(request_rec *r, const char *expr)
1232{
1233 const apr_table_entry_t *elts;
1234 const apr_array_header_t *hdr;
1235 int i;
1236 sctx_t *ctx = (sctx_t *) ap_get_module_config(r->server->module_config,
1237 &proxy_hcheck_module);
1238 if (!ctx)
1239 return;
1240 if (apr_is_empty_table(ctx->conditions))
1241 return;
1242
1243 hdr = apr_table_elts(ctx->conditions);
1244 elts = (const apr_table_entry_t *) hdr->elts;
1245 for (i = 0; i < hdr->nelts; ++i) {
1246 if (!elts[i].key) {
1247 continue;
1248 }
1249 ap_rprintf(r, "<option value='%s' %s >%s</option>\n",
1250 ap_escape_html(r->pool, elts[i].key),
1251 (!strcmp(elts[i].key, expr)) ? "selected" : "",
1252 ap_escape_html(r->pool, elts[i].key));
1253 }
1254}
1255
1256static int hc_valid_expr(request_rec *r, const char *expr)
1257{

Callers

nothing calls this directly

Calls 2

ap_get_module_configFunction · 0.85
ap_rprintfFunction · 0.85

Tested by

no test coverage detected