summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cgi_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cgi_main.c b/cgi_main.c
index 57735f396f..e6241ea09d 100644
--- a/cgi_main.c
+++ b/cgi_main.c
@@ -430,6 +430,9 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine
or user_dir configuration directives, PATH_INFO is used to construct
the filename as a side effect of php3_fopen_for_parser.
*/
+ if(cgi) {
+ SG(request_info).path_translated = getenv("PATH_TRANSLATED");
+ }
if (cgi || SG(request_info).path_translated) {
file_handle.handle.fp = php3_fopen_for_parser();
file_handle.filename = SG(request_info).path_translated;