MCPcopy Create free account
hub / github.com/apache/httpd / menu_directive

Function menu_directive

modules/mappers/mod_imagemap.c:542–564  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

540}
541
542static 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
566static void menu_footer(request_rec *r)
567{

Callers 1

imap_handler_internalFunction · 0.85

Calls 1

ap_rvputsFunction · 0.85

Tested by

no test coverage detected