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 217d35abd9..9d3cfc295e 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(PG(open_basedir), ".") == 0) && + if ((strcmp(open_basedir, ".") == 0) && SG(request_info).path_translated && *SG(request_info).path_translated ) { |