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

Diff for /mandoc/cgi.c between version 1.121 and 1.122

version 1.121, 2016/04/14 20:40:33 version 1.122, 2016/04/14 23:48:48
Line 816  format(const struct req *req, const char *file)
Line 816  format(const struct req *req, const char *file)
         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.121  
changed lines
  Added in v.1.122

CVSweb