aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-11-21 21:35:14 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-11-21 21:35:14 +0000
commit428f7ae6e2817ea438551afc25ce166a175f6c09 (patch)
treeebbe779b373173ff4489cc1e8d7b7c8eb14b989a
parent8b45837b4c07ea5165f7e94d5895b90f9072c4f0 (diff)
downloadbusybox-w32-428f7ae6e2817ea438551afc25ce166a175f6c09.tar.gz
busybox-w32-428f7ae6e2817ea438551afc25ce166a175f6c09.tar.bz2
busybox-w32-428f7ae6e2817ea438551afc25ce166a175f6c09.zip
httpd: comment on QUERY_STRING
-rw-r--r--networking/httpd.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/networking/httpd.c b/networking/httpd.c
index cafa9eda5..b82e9f995 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -1039,9 +1039,13 @@ static int sendCgi(const char *url,
1039 setenv1("SCRIPT_FILENAME", realpath_buff); 1039 setenv1("SCRIPT_FILENAME", realpath_buff);
1040 /* set SCRIPT_NAME as full path: /cgi-bin/dirs/script.cgi */ 1040 /* set SCRIPT_NAME as full path: /cgi-bin/dirs/script.cgi */
1041 setenv1("SCRIPT_NAME", purl); 1041 setenv1("SCRIPT_NAME", purl);
1042 /* TODO: bug 996 says we need to decodeString(config->query) 1042 /* http://hoohoo.ncsa.uiuc.edu/cgi/env.html:
1043 * before placing it into env. Is this true? Add example 1043 * QUERY_STRING: The information which follows the ? in the URL
1044 * in the comment please... */ 1044 * which referenced this script. This is the query information.
1045 * It should not be decoded in any fashion. This variable
1046 * should always be set when there is query information,
1047 * regardless of command line decoding. */
1048 /* (Older versions of bbox seemed to do some decoding) */
1045 setenv1("QUERY_STRING", config->query); 1049 setenv1("QUERY_STRING", config->query);
1046 setenv1("SERVER_SOFTWARE", httpdVersion); 1050 setenv1("SERVER_SOFTWARE", httpdVersion);
1047 putenv("SERVER_PROTOCOL=HTTP/1.0"); 1051 putenv("SERVER_PROTOCOL=HTTP/1.0");