cvs: php4 /main fopen-wrappers.c
| From: | Andi Gutmans | Date: | Thu, 02 Nov 2000 23:19:48 +0000 |
| Subject: | cvs: php4 /main fopen-wrappers.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-2435@lists.php.net to get a copy of this message | ||
andi Thu Nov 2 15:19:48 2000 EDT
Modified files:
/php4/main fopen-wrappers.c
Log:
- Missed one of the php_checkuid() places
Index: php4/main/fopen-wrappers.c
diff -u php4/main/fopen-wrappers.c:1.104 php4/main/fopen-wrappers.c:1.105
--- php4/main/fopen-wrappers.c:1.104 Thu Nov 2 15:08:06 2000
+++ php4/main/fopen-wrappers.c Thu Nov 2 15:19:48 2000
@@ -16,7 +16,7 @@
| Jim Winstead <jimw@php.net> |
+----------------------------------------------------------------------+
*/
-/* $Id: fopen-wrappers.c,v 1.104 2000/11/02 23:08:06 andi Exp $ */
+/* $Id: fopen-wrappers.c,v 1.105 2000/11/02 23:19:48 andi Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -256,7 +256,7 @@
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);