From 1956fb48d2c731c60a5081f91f15586d9bd2b9e9 Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Thu, 2 Nov 2000 23:19:48 +0000 Subject: [PATCH] - Missed one of the php_checkuid() places --- main/fopen_wrappers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.50.1