cvs: smarty / NEWS /libs/core core.create_dir_structure.php

"Messju Mohr" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmessju1066895455@cvsserver>
messju		Thu Oct 23 03:50:55 2003 EDT

  Modified files:              
    /smarty	NEWS 
    /smarty/libs/core	core.create_dir_structure.php 
  Log:
  fix handling of trailing-slashes in open_basedir in
  smarty_core_create_dir_structure()
  
  
  
Index: smarty/NEWS
diff -u smarty/NEWS:1.397 smarty/NEWS:1.398
--- smarty/NEWS:1.397	Wed Oct  8 19:43:33 2003
+++ smarty/NEWS	Thu Oct 23 03:50:54 2003
@@ -1,3 +1,6 @@
+  - fix handling of trailing-slashes in open_basedir in
+    smarty_core_create_dir_structure() (packman, messju)
+
 Version 2.6.0-RC2 (Oct 8, 2003)
 -------------------------------
 
Index: smarty/libs/core/core.create_dir_structure.php
diff -u smarty/libs/core/core.create_dir_structure.php:1.5 smarty/libs/core/core.create_dir_structure.php:1.6
--- smarty/libs/core/core.create_dir_structure.php:1.5	Sat Oct 11 04:55:53 2003
+++ smarty/libs/core/core.create_dir_structure.php	Thu Oct 23 03:50:55 2003
@@ -56,7 +56,7 @@
                 // do not attempt to test or make directories outside of open_basedir
                 $_make_new_dir = false;
                 foreach ($_open_basedirs as $_open_basedir) {
-                    if (substr($_new_dir . '/', 0, strlen($_open_basedir)) == $_open_basedir) {
+                    if (substr($_new_dir, 0, strlen($_open_basedir)) == $_open_basedir) {
                         $_make_new_dir = true;
                         break;
                     }

-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.