diff options
author | Sascha Schumann <sas@php.net> | 1999-08-29 18:25:37 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 1999-08-29 18:25:37 +0000 |
commit | 869eeb62f42ce1c1d8e17efaa70676988cbabdc8 (patch) | |
tree | 08296962cccd16c231c87759a481bf1eb434b2b7 | |
parent | 621fe700485a3d28eb3f06ace25a454746a9dd5d (diff) | |
download | php-git-869eeb62f42ce1c1d8e17efaa70676988cbabdc8.tar.gz |
PATH_TRANSLATED was not used at all, even if one comment implied
it should be used. After adding this, the CGI version works for me
w/ Apache + suexec
-rw-r--r-- | cgi_main.c | 3 |
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; |