| 516 | } |
| 517 | |
| 518 | static void menu_default(request_rec *r, const char *menu, const char *href, const char *text) |
| 519 | { |
| 520 | char *ehref, *etext; |
| 521 | if (!strcasecmp(href, "error") || !strcasecmp(href, "nocontent")) { |
| 522 | return; /* don't print such lines, these aren't |
| 523 | really href's */ |
| 524 | } |
| 525 | |
| 526 | ehref = ap_escape_uri(r->pool, href); |
| 527 | etext = ap_escape_html(r->pool, text); |
| 528 | |
| 529 | if (!strcasecmp(menu, "formatted")) { |
| 530 | ap_rvputs(r, "<pre>(Default) <a href=\"", ehref, "\">", etext, |
| 531 | "</a></pre>\n", NULL); |
| 532 | } |
| 533 | else if (!strcasecmp(menu, "semiformatted")) { |
| 534 | ap_rvputs(r, "<pre>(Default) <a href=\"", ehref, "\">", etext, |
| 535 | "</a></pre>\n", NULL); |
| 536 | } |
| 537 | else if (!strcasecmp(menu, "unformatted")) { |
| 538 | ap_rvputs(r, "<a href=\"", ehref, "\">", etext, "</a>", NULL); |
| 539 | } |
| 540 | } |
| 541 | |
| 542 | static void menu_directive(request_rec *r, const char *menu, const char *href, const char *text) |
| 543 | { |
no test coverage detected