cvs: php-src /main fopen_wrappers.c

From: Date: Wed, 18 Apr 2007 11:59:03 +0000
Subject: cvs: php-src /main fopen_wrappers.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-43966@lists.php.net to get a copy of this message
dmitry Wed Apr 18 11:59:03 2007 UTC Modified files: /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.192&r2=1.193&diff_format=u Index: php-src/main/fopen_wrappers.c diff -u php-src/main/fopen_wrappers.c:1.192 php-src/main/fopen_wrappers.c:1.193 --- php-src/main/fopen_wrappers.c:1.192 Tue Apr 10 22:31:27 2007 +++ php-src/main/fopen_wrappers.c Wed Apr 18 11:59:03 2007 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: fopen_wrappers.c,v 1.192 2007/04/10 22:31:27 tony2001 Exp $ */ +/* $Id: fopen_wrappers.c,v 1.193 2007/04/18 11:59:03 dmitry Exp $ */ /* {{{ includes */ @@ -208,6 +208,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 (#43966) next »