From 41278da02f7f8c812ba5dec3cb1dcf813aa8b1df Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Sat, 17 May 2003 18:55:23 +0000 Subject: [PATCH] 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. --- sapi/cgi/cgi_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.40.0