stoddard 99/10/12 12:19:31
Modified: src/modules/standard mod_cgi.c
Log:
Need to pass in just the directory, not including the filename. Note that CGI
arguments are being completely ignored. suexec needs to be handled, the CGI
arguments
need to be canonicalized (e.g., quote args containing spaces, etc.) and
ScriptInterpreterSource
needs reimplementing. Whew!
Revision Changes Path
1.9 +1 -1 apache-2.0/src/modules/standard/mod_cgi.c
Index: mod_cgi.c
===================================================================
RCS file: /home/cvs/apache-2.0/src/modules/standard/mod_cgi.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- mod_cgi.c 1999/10/12 14:45:57 1.8
+++ mod_cgi.c 1999/10/12 19:19:29 1.9
@@ -353,7 +353,7 @@
script_in ? 1 : 0,
script_out ? 1 : 0,
script_err ? 1 : 0) != APR_SUCCESS) ||
- (ap_setprocattr_dir(procattr, r->filename) != APR_SUCCESS) ||
+ (ap_setprocattr_dir(procattr, ap_make_dirstr_parent(r->pool,
r->filename)) != APR_SUCCESS) ||
(ap_setprocattr_cmdtype(procattr, APR_PROGRAM) != APR_SUCCESS)) {
/* Something bad happened, tell the world. */
ap_log_rerror(APLOG_MARK, APLOG_ERR, r,