From: Moriyoshi Koizumi Date: Sat, 17 May 2003 18:55:23 +0000 (+0000) Subject: MFH(r-1.225): fixed bug #23669 X-Git-Tag: BEFORE_FD_REVERT~50 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=41278da02f7f8c812ba5dec3cb1dcf813aa8b1df;p=php MFH(r-1.225): fixed bug #23669 # When the script is launched with the "Action" directive, # PATH_TRANSLATED is then populated to indicate the virtual location of # the script, and both REDIRECT_URL / PATH_INFO are set to the virtual URI. # Otherwise, REDIRECT_URL may take an arbitrary value instead of the actual # URI, which cannot be relied upon at all. --- diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 34140b9516..940a463cf4 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -683,7 +683,7 @@ static void init_request_info(TSRMLS_D) } } - if (env_redirect_url) { + if (env_path_translated != NULL && env_redirect_url != NULL) { /* pretty much apache specific. If we have a redirect_url then our script_filename and script_name point to the