Invalid response code when force-cgi-redirect safety mechanism is triggered

This commit is contained in:
Ilia Alshanetsky 2004-03-12 14:05:59 +00:00
parent 3787740cbc
commit ed2b1770ab

View File

@ -1079,6 +1079,7 @@ int main(int argc, char *argv[])
in case some server does something different than above */
&& (!redirect_status_env || !getenv(redirect_status_env))
) {
SG(sapi_headers).http_response_code = 400;
PUTS("<b>Security Alert!</b> The PHP CGI cannot be accessed directly.\n\n\
<p>This PHP CGI binary was compiled with force-cgi-redirect enabled. This\n\
means that a page will only be served up if the REDIRECT_STATUS CGI variable is\n\