cvs: smarty /libs/core core.get_include_path.php

"Messju Mohr" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmessju1069685763@cvsserver>
messju		Mon Nov 24 09:56:03 2003 EDT

  Modified files:              
    /smarty/libs/core	core.get_include_path.php 
  Log:
  silence occasional warnings of open_basedir- and
  safe_mode-restrictions in core.get_include_path.php
  
  
  
Index: smarty/libs/core/core.get_include_path.php
diff -u smarty/libs/core/core.get_include_path.php:1.3 smarty/libs/core/core.get_include_path.php:1.4
--- smarty/libs/core/core.get_include_path.php:1.3	Sat Oct 11 04:55:53 2003
+++ smarty/libs/core/core.get_include_path.php	Mon Nov 24 09:56:02 2003
@@ -31,7 +31,7 @@
         }
     }
     foreach ($_path_array as $_include_path) {
-        if (file_exists($_include_path . DIRECTORY_SEPARATOR . $params['file_path'])) {
+        if (@is_readable($_include_path . DIRECTORY_SEPARATOR . $params['file_path'])) {
                $params['new_file_path'] = $_include_path . DIRECTORY_SEPARATOR . $params['file_path'];
             return true;
         }

-- 
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.