cvs: php4 /ext/standard basic_functions.c

From: Date: Sun, 17 Mar 2002 20:56:22 +0000
Subject: cvs: php4 /ext/standard basic_functions.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-10303@lists.php.net to get a copy of this message
sesser Sun Mar 17 15:56:22 2002 EDT Modified files: /php4/ext/standard basic_functions.c Log: move_uploaded_files checks open_basedir now Index: php4/ext/standard/basic_functions.c diff -u php4/ext/standard/basic_functions.c:1.452 php4/ext/standard/basic_functions.c:1.453 --- php4/ext/standard/basic_functions.c:1.452 Sat Mar 16 11:52:24 2002 +++ php4/ext/standard/basic_functions.c Sun Mar 17 15:56:20 2002 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: basic_functions.c,v 1.452 2002/03/16 16:52:24 wez Exp $ */ +/* $Id: basic_functions.c,v 1.453 2002/03/17 20:56:20 sesser Exp $ */ #include "php.h" #include "php_streams.h" @@ -2356,6 +2356,10 @@ } if (PG(safe_mode) && (!php_checkuid(Z_STRVAL_PP(new_path), NULL, CHECKUID_CHECK_FILE_AND_DIR))) { + RETURN_FALSE; + } + + if (php_check_open_basedir(Z_STRVAL_PP(new_path) TSRMLS_CC)) { RETURN_FALSE; }

« previous php.cvs (#10303) next »