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';
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php