|
From: <do...@us...> - 2008-01-24 14:51:08
|
Update of /cvsroot/aolserver/aolserver/nscgi In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv32100 Modified Files: nscgi.c Log Message: Oops, REQUEST_URI should have only been the Request-URI, not including the query string. Index: nscgi.c =================================================================== RCS file: /cvsroot/aolserver/aolserver/nscgi/nscgi.c,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** nscgi.c 24 Jan 2008 13:21:12 -0000 1.33 --- nscgi.c 24 Jan 2008 14:29:18 -0000 1.34 *************** *** 749,759 **** */ ! 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, "SCRIPT_NAME", cgiPtr->name); SetUpdate(cgiPtr->env, "SCRIPT_FILENAME", cgiPtr->path); --- 749,753 ---- */ ! SetUpdate(cgiPtr->env, "REQUEST_URI", conn->request->url); SetUpdate(cgiPtr->env, "SCRIPT_NAME", cgiPtr->name); SetUpdate(cgiPtr->env, "SCRIPT_FILENAME", cgiPtr->path); |