]> granicus.if.org Git - php/commitdiff
- Pray this is an OK fix for the DISCARD_PATH junk
authorAndi Gutmans <andi@php.net>
Mon, 26 Jun 2000 17:57:03 +0000 (17:57 +0000)
committerAndi Gutmans <andi@php.net>
Mon, 26 Jun 2000 17:57:03 +0000 (17:57 +0000)
sapi/cgi/cgi_main.c

index 003c7907bc2ae4caf30b6180923e1067190b4d53..9807cafcf3419418d88736ce889312fd2576b1be 100644 (file)
@@ -625,7 +625,11 @@ 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 php_fopen_primary_script.
         */
+#if DISCARD_PATH
+               SG(request_info).path_translated = estrdup(getenv("SCRIPT_FILENAME"));
+#else
                SG(request_info).path_translated = estrdup(getenv("PATH_TRANSLATED"));
+#endif
        }
        if (cgi || SG(request_info).path_translated) {
                file_handle.handle.fp = php_fopen_primary_script();