| 1229 | } |
| 1230 | |
| 1231 | static 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 | |
| 1256 | static int hc_valid_expr(request_rec *r, const char *expr) |
| 1257 | { |
nothing calls this directly
no test coverage detected