| 296 | } |
| 297 | |
| 298 | static int inside_section(cmd_parms *cmd, const char *section) { |
| 299 | ap_directive_t *d; |
| 300 | for (d = cmd->directive->parent; d; d = d->parent) { |
| 301 | if (!apr_cstr_casecmp(d->directive, section)) { |
| 302 | return 1; |
| 303 | } |
| 304 | } |
| 305 | return 0; |
| 306 | } |
| 307 | |
| 308 | static int inside_md_section(cmd_parms *cmd) { |
| 309 | return (inside_section(cmd, MD_CMD_MD_SECTION) || inside_section(cmd, MD_CMD_MD2_SECTION)); |