diff options
-rw-r--r-- | networking/httpd.c | 10 |
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"); |