cvs: php-src(PHP_5_2) /main fopen_wrappers.c

From: Date: Wed, 18 Apr 2007 11:58:40 +0000
Subject: cvs: php-src(PHP_5_2) /main fopen_wrappers.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-43965@lists.php.net to get a copy of this message
dmitry Wed Apr 18 11:58:40 2007 UTC Modified files: (Branch: PHP_5_2) /php-src/main fopen_wrappers.c Log: Fixed endless loop in open_basedir check http://cvs.php.net/viewvc.cgi/php-src/main/fopen_wrappers.c?r1=1.175.2.3.2.10&r2=1.175.2.3.2.11&diff_format=u Index: php-src/main/fopen_wrappers.c diff -u php-src/main/fopen_wrappers.c:1.175.2.3.2.10 php-src/main/fopen_wrappers.c:1.175.2.3.2.11 --- php-src/main/fopen_wrappers.c:1.175.2.3.2.10 Tue Apr 10 22:30:07 2007 +++ php-src/main/fopen_wrappers.c Wed Apr 18 11:58:40 2007 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: fopen_wrappers.c,v 1.175.2.3.2.10 2007/04/10 22:30:07 tony2001 Exp $ */ +/* $Id: fopen_wrappers.c,v 1.175.2.3.2.11 2007/04/18 11:58:40 dmitry Exp $ */ /* {{{ includes */ @@ -151,6 +151,8 @@ if (path_len > 1 && path_tmp[path_len - 2] == ':') { /* this is c:\, */ path_tmp[path_len] = '\0'; + } else { + path_tmp[path_len - 1] = '\0'; } #else path_tmp[path_len - 1] = '\0';

« previous php.cvs (#43965) next »