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

Function menu_default

modules/mappers/mod_imagemap.c:518–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

516}
517
518static 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
542static void menu_directive(request_rec *r, const char *menu, const char *href, const char *text)
543{

Callers 1

imap_handler_internalFunction · 0.85

Calls 1

ap_rvputsFunction · 0.85

Tested by

no test coverage detected