cvs: php4 /sapi/cgi cgi_main.c

From: Date: Wed, 11 Oct 2000 17:48:45 +0000
Subject: cvs: php4 /sapi/cgi cgi_main.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-1998@lists.php.net to get a copy of this message
andi Wed Oct 11 10:48:45 2000 EDT Modified files: /php4/sapi/cgi cgi_main.c Log: - Commit Kristian's PHP 3 patch to PHP 4. Kristian I hope it's also the same here. Index: php4/sapi/cgi/cgi_main.c diff -u php4/sapi/cgi/cgi_main.c:1.71 php4/sapi/cgi/cgi_main.c:1.72 --- php4/sapi/cgi/cgi_main.c:1.71 Tue Oct 3 06:02:30 2000 +++ php4/sapi/cgi/cgi_main.c Wed Oct 11 10:48:44 2000 @@ -433,7 +433,13 @@ argv0 = NULL; } #if FORCE_CGI_REDIRECT - if (!getenv("REDIRECT_STATUS")) { + /* Apache will generate REDIRECT_STATUS, + * Netscape and redirect.so will generate HTTP_REDIRECT_STATUS. + * redirect.so and installation instructions available from + * http://www.koehntopp.de/php. + * -- kk@netuse.de + */ + if (!getenv("REDIRECT_STATUS") && !getenv ("HTTP_REDIRECT_STATUS")) { PUTS("<b>Security Alert!</b> PHP CGI cannot be accessed directly.\n\ \n\ <P>This PHP CGI binary was compiled with force-cgi-redirect enabled. This\n\

« previous php.cvs (#1998) next »