diff options
author | Dmitry Stogov <dmitry@php.net> | 2008-11-28 11:57:02 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2008-11-28 11:57:02 +0000 |
commit | c5c9e45af9ab6c40e5227fd50751ba779081cfad (patch) | |
tree | e1ecaf67069acf7b3121ef37ff01e2427b71d244 /sapi | |
parent | 775389cd1d0dc08d54c17c6abac7e56d2eef9bcb (diff) | |
download | php-git-c5c9e45af9ab6c40e5227fd50751ba779081cfad.tar.gz |
Fixed bug #46366 (bad cwd with / as pathinfo)
Diffstat (limited to 'sapi')
-rw-r--r-- | sapi/cgi/cgi_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index f706f86040..a39df163e4 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -1078,6 +1078,9 @@ static void init_request_info(TSRMLS_D) if (script_path_translated && (script_path_translated_len = strlen(script_path_translated)) > 0 && (script_path_translated[script_path_translated_len-1] == '/' || +#ifdef PHP_WIN32 + script_path_translated[script_path_translated_len-1] == '\\' || +#endif (real_path = tsrm_realpath(script_path_translated, NULL TSRMLS_CC)) == NULL) ) { char *pt = estrndup(script_path_translated, script_path_translated_len); |