mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
Invalid response code when force-cgi-redirect safety mechanism is triggered
This commit is contained in:
parent
3787740cbc
commit
ed2b1770ab
@ -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\
|
||||
|
Loading…
Reference in New Issue
Block a user