[BACK]Return to cgi.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/cgi.c between version 1.21 and 1.23

version 1.21, 2011/12/09 23:18:51 version 1.23, 2011/12/10 10:59:21
Line 159  kval_query(struct query *q, const struct kval *fields,
Line 159  kval_query(struct query *q, const struct kval *fields,
                 q->whatis = 1;                  q->whatis = 1;
         }          }
   
         /* Section "0" means no section when in legacy mode. */          /*
            * Section "0" means no section when in legacy mode.
            * For some man.cgi scripts, "default" arch is none.
            */
   
         if (q->legacy && NULL != q->sec && 0 == strcmp(q->sec, "0"))          if (q->legacy && NULL != q->sec)
                 q->sec = NULL;                  if (0 == strcmp(q->sec, "0"))
                           q->sec = NULL;
           if (q->legacy && NULL != q->arch)
                   if (0 == strcmp(q->arch, "default"))
                           q->arch = NULL;
 }  }
   
 /*  /*
Line 434  resp_error400(void)
Line 441  resp_error400(void)
                "<P>\n"                 "<P>\n"
                "The query your entered was malformed.\n"                 "The query your entered was malformed.\n"
                "Try again from the\n"                 "Try again from the\n"
                "<A HREF=\"%s/index.html\">main page</A>\n"                 "<A HREF=\"%s/index.html\">main page</A>.\n"
                "</P>", progname);                 "</P>", progname);
         resp_end_html();          resp_end_html();
 }  }
Line 452  resp_error404(const char *page)
Line 459  resp_error404(const char *page)
         printf("</B>,\n"          printf("</B>,\n"
                "could not be found.\n"                 "could not be found.\n"
                "Try searching from the\n"                 "Try searching from the\n"
                "<A HREF=\"%s/index.html\">main page</A>\n"                 "<A HREF=\"%s/index.html\">main page</A>.\n"
                "</P>", progname);                 "</P>", progname);
         resp_end_html();          resp_end_html();
 }  }

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.23

CVSweb