| 540 | } |
| 541 | |
| 542 | static void menu_directive(request_rec *r, const char *menu, const char *href, const char *text) |
| 543 | { |
| 544 | char *ehref, *etext; |
| 545 | if (!strcasecmp(href, "error") || !strcasecmp(href, "nocontent")) { |
| 546 | return; /* don't print such lines, as this isn't |
| 547 | really an href */ |
| 548 | } |
| 549 | |
| 550 | ehref = ap_escape_uri(r->pool, href); |
| 551 | etext = ap_escape_html(r->pool, text); |
| 552 | |
| 553 | if (!strcasecmp(menu, "formatted")) { |
| 554 | ap_rvputs(r, "<pre> <a href=\"", ehref, "\">", etext, |
| 555 | "</a></pre>\n", NULL); |
| 556 | } |
| 557 | else if (!strcasecmp(menu, "semiformatted")) { |
| 558 | ap_rvputs(r, "<pre> <a href=\"", ehref, "\">", etext, |
| 559 | "</a></pre>\n", NULL); |
| 560 | } |
| 561 | else if (!strcasecmp(menu, "unformatted")) { |
| 562 | ap_rvputs(r, "<a href=\"", ehref, "\">", etext, "</a>", NULL); |
| 563 | } |
| 564 | } |
| 565 | |
| 566 | static void menu_footer(request_rec *r) |
| 567 | { |
no test coverage detected