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

Diff for /mandoc/cgi.c between version 1.52 and 1.53

version 1.52, 2014/07/09 07:30:47 version 1.53, 2014/07/09 08:53:28
Line 134  static void
Line 134  static void
 http_printquery(const struct req *req)  http_printquery(const struct req *req)
 {  {
   
         printf("&expr=");          if (NULL != req->q.manroot) {
         http_print(req->q.expr ? req->q.expr : "");                  printf("&manpath=");
         printf("&sec=");                  http_print(req->q.manroot);
         http_print(req->q.sec ? req->q.sec : "");          }
         printf("&arch=");          if (NULL != req->q.sec) {
         http_print(req->q.arch ? req->q.arch : "");                  printf("&sec=");
                   http_print(req->q.sec);
           }
           if (NULL != req->q.arch) {
                   printf("&arch=");
                   http_print(req->q.arch);
           }
           if (NULL != req->q.expr) {
                   printf("&expr=");
                   http_print(req->q.expr ? req->q.expr : "");
           }
 }  }
   
   
Line 147  static void
Line 157  static void
 html_printquery(const struct req *req)  html_printquery(const struct req *req)
 {  {
   
         printf("&expr=");          if (NULL != req->q.manroot) {
         html_print(req->q.expr ? req->q.expr : "");                  printf("&manpath=");
         printf("&sec=");                  html_print(req->q.manroot);
         html_print(req->q.sec ? req->q.sec : "");          }
         printf("&arch=");          if (NULL != req->q.sec) {
         html_print(req->q.arch ? req->q.arch : "");                  printf("&sec=");
                   html_print(req->q.sec);
           }
           if (NULL != req->q.arch) {
                   printf("&arch=");
                   html_print(req->q.arch);
           }
           if (NULL != req->q.expr) {
                   printf("&expr=");
                   html_print(req->q.expr ? req->q.expr : "");
           }
 }  }
   
 static void  static void

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.53

CVSweb