diff options
| -rw-r--r-- | main/fopen_wrappers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c index 9d3cfc295e..b8f752a84c 100644 --- a/main/fopen_wrappers.c +++ b/main/fopen_wrappers.c @@ -147,7 +147,7 @@ PHPAPI int php_check_specific_open_basedir(char *basedir, char *path PLS_DC) SLS_FETCH(); /* Special case basedir==".": Use script-directory */ - if ((strcmp(open_basedir, ".") == 0) && + if ((strcmp(basedir, ".") == 0) && SG(request_info).path_translated && *SG(request_info).path_translated ) { |
