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

Diff for /mandoc/cgi.c between version 1.72 and 1.73

version 1.72, 2014/07/13 12:55:45 version 1.73, 2014/07/13 15:38:36
Line 250  http_parse(struct req *req, char *p)
Line 250  http_parse(struct req *req, char *p)
   
                 if (0 == strcmp(key, "query"))                  if (0 == strcmp(key, "query"))
                         req->q.expr = val;                          req->q.expr = val;
                 else if (0 == strcmp(key, "manpath"))                  else if (0 == strcmp(key, "manpath")) {
   #ifdef COMPAT_OLDURI
                           if (0 == strncmp(val, "OpenBSD ", 8)) {
                                   val[7] = '-';
                                   if ('C' == val[8])
                                           val[8] = 'c';
                           }
   #endif
                         req->q.manpath = val;                          req->q.manpath = val;
                 else if (0 == strcmp(key, "apropos"))                  } else if (0 == strcmp(key, "apropos"))
                         req->q.equal = !strcmp(val, "0");                          req->q.equal = !strcmp(val, "0");
                 else if (0 == strcmp(key, "sec") ||                  else if (0 == strcmp(key, "sec")) {
                          0 == strcmp(key, "sektion")) {  
                         if (strcmp(val, "0"))                          if (strcmp(val, "0"))
                                 req->q.sec = val;                                  req->q.sec = val;
   #ifdef COMPAT_OLDURI
                   } else if (0 == strcmp(key, "sektion")) {
                           if (strcmp(val, "0"))
                                   req->q.sec = val;
   #endif
                 } else if (0 == strcmp(key, "arch")) {                  } else if (0 == strcmp(key, "arch")) {
                         if (strcmp(val, "default"))                          if (strcmp(val, "default"))
                                 req->q.arch = val;                                  req->q.arch = val;

Legend:
Removed from v.1.72  
changed lines
  Added in v.1.73

CVSweb