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';

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to