Permalink
Browse files

Oops, REQUEST_URI should have only been the Request-URI, not including

the query string.
  • Loading branch information...
1 parent f4d3934 commit fccbb4806205562f1f3cde5352d91396fc85c5b0 dossy committed Jan 24, 2008
Showing with 2 additions and 8 deletions.
  1. +2 −8 nscgi/nscgi.c
View
@@ -27,7 +27,7 @@
* version of this file under either the License or the GPL.
*/
-static const char *RCSID = "@(#) $Header: /Users/dossy/Desktop/cvs/aolserver/nscgi/nscgi.c,v 1.33 2008/01/24 13:21:12 dossy Exp $, compiled: " __DATE__ " " __TIME__;
+static const char *RCSID = "@(#) $Header: /Users/dossy/Desktop/cvs/aolserver/nscgi/nscgi.c,v 1.34 2008/01/24 14:29:18 dossy Exp $, compiled: " __DATE__ " " __TIME__;
#include "ns.h"
#include <sys/stat.h>
@@ -748,13 +748,7 @@ CgiExec(Cgi *cgiPtr, Ns_Conn *conn)
* Set all the CGI specified variables.
*/
- Ns_DStringAppend(dsPtr, conn->request->url);
- if (conn->request->query != NULL) {
- Ns_DStringVarAppend(dsPtr, "?", conn->request->query, NULL);
- }
- SetUpdate(cgiPtr->env, "REQUEST_URI", dsPtr->string);
- Ns_DStringTrunc(dsPtr, 0);
-
+ SetUpdate(cgiPtr->env, "REQUEST_URI", conn->request->url);
SetUpdate(cgiPtr->env, "SCRIPT_NAME", cgiPtr->name);
SetUpdate(cgiPtr->env, "SCRIPT_FILENAME", cgiPtr->path);
if (cgiPtr->pathinfo != NULL && *cgiPtr->pathinfo != '\0') {

0 comments on commit fccbb48

Please sign in to comment.