From: Andi Gutmans Date: Thu, 2 Nov 2000 23:19:48 +0000 (+0000) Subject: - Missed one of the php_checkuid() places X-Git-Tag: php-4.0.4RC3~363 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1956fb48d2c731c60a5081f91f15586d9bd2b9e9;p=php - Missed one of the php_checkuid() places --- diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c index 032eac346b..eeaba65390 100644 --- a/main/fopen_wrappers.c +++ b/main/fopen_wrappers.c @@ -256,7 +256,7 @@ PHPAPI FILE *php_fopen_wrapper(char *path, char *mode, int options, int *issock, if (options & USE_PATH && PG(include_path) != NULL) { return php_fopen_with_path(path, mode, PG(include_path), opened_path); } else { - if (options & ENFORCE_SAFE_MODE && PG(safe_mode) && (!php_checkuid(path, mode, 0))) { + if (options & ENFORCE_SAFE_MODE && PG(safe_mode) && (!php_checkuid(path, mode, CHECKUID_DISALLOW_FILE_NOT_EXISTS))) { return NULL; } return php_fopen_and_set_opened_path(path, mode, opened_path);