diff options
Diffstat (limited to 'main/safe_mode.c')
-rw-r--r-- | main/safe_mode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/safe_mode.c b/main/safe_mode.c index 422f8ba72f..f4d69f7b1f 100644 --- a/main/safe_mode.c +++ b/main/safe_mode.c @@ -136,7 +136,7 @@ PHPAPI char *_php3_get_current_user() USE_SAPI is defined, because cgi will also be interfaced in USE_SAPI */ #if CGI_BINARY || USE_SAPI || FHTTPD - if (!request_info.filename || (stat(request_info.filename,&statbuf)==-1)) { + if (!SG(request_info).path_translated || (stat(SG(request_info).path_translated,&statbuf)==-1)) { return empty_string; } uid = statbuf.st_uid; |