cvs: php-src(PHP_5_2) / NEWS /ext/standard dir.c

From: Date: Wed, 04 Oct 2006 23:19:25 +0000
Subject: cvs: php-src(PHP_5_2) / NEWS /ext/standard dir.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-40914@lists.php.net to get a copy of this message
iliaa Wed Oct 4 23:19:25 2006 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/standard dir.c /php-src NEWS Log: Fixed missing open_basedir check inside chdir() function. http://cvs.php.net/viewvc.cgi/php-src/ext/standard/dir.c?r1=1.147.2.3&r2=1.147.2.3.2.1&diff_format=u Index: php-src/ext/standard/dir.c diff -u php-src/ext/standard/dir.c:1.147.2.3 php-src/ext/standard/dir.c:1.147.2.3.2.1 --- php-src/ext/standard/dir.c:1.147.2.3 Sun Feb 26 10:49:50 2006 +++ php-src/ext/standard/dir.c Wed Oct 4 23:19:25 2006 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: dir.c,v 1.147.2.3 2006/02/26 10:49:50 helly Exp $ */ +/* $Id: dir.c,v 1.147.2.3.2.1 2006/10/04 23:19:25 iliaa Exp $ */ /* {{{ includes/startup/misc */ @@ -286,7 +286,7 @@ RETURN_FALSE; } - if (PG(safe_mode) && !php_checkuid(str, NULL, CHECKUID_CHECK_FILE_AND_DIR)) { + if ((PG(safe_mode) && !php_checkuid(str, NULL, CHECKUID_CHECK_FILE_AND_DIR)) || php_check_open_basedir(str TSRMLS_CC)) { RETURN_FALSE; } ret = VCWD_CHDIR(str); http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.283&r2=1.2027.2.547.2.284&diff_format=u Index: php-src/NEWS diff -u php-src/NEWS:1.2027.2.547.2.283 php-src/NEWS:1.2027.2.547.2.284 --- php-src/NEWS:1.2027.2.547.2.283 Wed Oct 4 12:04:32 2006 +++ php-src/NEWS Wed Oct 4 23:19:25 2006 @@ -7,6 +7,7 @@ - Fixed mess with CGI/CLI -d option (now it works with cgi; constants are working exactly like in php.ini; with FastCGI -d affects all requests). (Dmitry) +- Fixed missing open_basedir check inside chdir() function. (Ilia) - Fixed bug #39035 (Compatibilty issue between DOM and zend.ze1_compatibility_mode). (Rob) - Fixed bug #39032 (strcspn() stops on null character). (Tony)

« previous php.cvs (#40914) next »