php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | |
Patch pm_return_404_without_scriptfilename_v2.diff for FPM related Bug #69625Patch version 2015-05-12 06:45 UTC Return to Bug #69625 | Download this patchThis patch is obsolete Obsoleted by patches: This patch renders other patches obsolete Obsolete patches: Patch Revisions:Developer: cfc4n@cnxct.com--- fpm_main.c 2015-05-12 13:05:25.000000000 +0800 +++ fpm_main_fix.c 2015-05-12 13:08:15.000000000 +0800 @@ -1833,16 +1833,6 @@ return FPM_EXIT_SOFTWARE; } - /* check if request_method has been sent. - * if not, it's certainly not an HTTP over fcgi request */ - if (!SG(request_info).request_method) { - goto fastcgi_request_done; - } - - if (fpm_status_handle_request()) { - goto fastcgi_request_done; - } - /* If path_translated is NULL, terminate here with a 404 */ if (!SG(request_info).path_translated) { zend_try { @@ -1854,6 +1844,16 @@ goto fastcgi_request_done; } + /* check if request_method has been sent. + * if not, it's certainly not an HTTP over fcgi request */ + if (!SG(request_info).request_method) { + goto fastcgi_request_done; + } + + if (fpm_status_handle_request()) { + goto fastcgi_request_done; + } + if (fpm_php_limit_extensions(SG(request_info).path_translated)) { SG(sapi_headers).http_response_code = 403; PUTS("Access denied.\n"); |
Copyright © 2001-2024 The PHP Group All rights reserved. |
Last updated: Fri Apr 26 01:01:30 2024 UTC |