[BACK]Return to cgi.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/cgi.c between version 1.60 and 1.61

version 1.60, 2016/04/14 20:38:50 version 1.61, 2016/04/14 23:48:06
Line 814 
Line 814 
         memset(&conf, 0, sizeof(conf));          memset(&conf, 0, sizeof(conf));
         conf.fragment = 1;          conf.fragment = 1;
         usepath = strcmp(req->q.manpath, req->p[0]);          usepath = strcmp(req->q.manpath, req->p[0]);
         mandoc_asprintf(&conf.man, "/%s?query=%%N&sec=%%S%s%s%s%s",          mandoc_asprintf(&conf.man, "/%s%s%%N.%%S",
             scriptname,              usepath ? req->q.manpath : "", usepath ? "/" : "");
             req->q.arch ? "&arch="       : "",  
             req->q.arch ? req->q.arch    : "",  
             usepath     ? "&manpath="    : "",  
             usepath     ? req->q.manpath : "");  
   
         mparse_result(mp, &man, NULL);          mparse_result(mp, &man, NULL);
         if (man == NULL) {          if (man == NULL) {

Legend:
Removed from v.1.60  
changed lines
  Added in v.1.61