mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
Fixed bug #46366 (bad cwd with / as pathinfo)
This commit is contained in:
@@ -1087,6 +1087,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);
|
||||
|
||||
Reference in New Issue
Block a user