cvs: php4(PHP_4_2_0) /ext/standard basic_functions.c

From: Date: Sun, 17 Mar 2002 20:54:57 +0000
Subject: cvs: php4(PHP_4_2_0) /ext/standard basic_functions.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-10302@lists.php.net to get a copy of this message
sesser Sun Mar 17 15:54:57 2002 EDT Modified files: (Branch: PHP_4_2_0) /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.447 php4/ext/standard/basic_functions.c:1.447.2.1 --- php4/ext/standard/basic_functions.c:1.447 Thu Feb 28 22:05:49 2002 +++ php4/ext/standard/basic_functions.c Sun Mar 17 15:54:57 2002 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: basic_functions.c,v 1.447 2002/03/01 03:05:49 yohgaki Exp $ */ +/* $Id: basic_functions.c,v 1.447.2.1 2002/03/17 20:54:57 sesser Exp $ */ #include "php.h" #include "php_main.h" @@ -2354,6 +2354,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 (#10302) next »