httpd: summay of environment variables for cgi

Vladimir N. Oleynik dzo at simtreas.ru
Mon Sep 5 13:44:21 UTC 2005


Dirk,

> additional by busybox-httpd
>     (PATH)

It was required of my realization:
1) drop all environs
2) set only requires, PATH requires for scripts

>     REQUEST_URI

Please wait ~ 3-10 day. ;-)
Its REALLY knotty!

Example from pending patchs:

         /* no rewrite from SSI #include virtual="/cgi-bin/cgi" */
         if(request) {
             if(uri->path_info)
                 sprintf(purl, "%s/%s", uri->url, uri->path_info);
             else
                 strcpy(purl, uri->url);
             if(uri->query)
                 sprintf(purl, "%s?%s", purl, uri->query);
             addEnv("REQUEST", "URI",   purl);
         }



--w
vodz



More information about the busybox mailing list