cvs: smarty /libs/plugins function.html_image.php

"Messju Mohr" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmessju1056987865@cvsserver>
messju		Mon Jun 30 11:44:25 2003 EDT

  Modified files:              
    /smarty/libs/plugins	function.html_image.php 
  Log:
  match first character of file-attribute against "/" instead of
  DIRECTORY_SEPARATOR since it is a url-path and not a file-path.
  
  
  
Index: smarty/libs/plugins/function.html_image.php
diff -u smarty/libs/plugins/function.html_image.php:1.22 smarty/libs/plugins/function.html_image.php:1.23
--- smarty/libs/plugins/function.html_image.php:1.22	Mon Jun 30 11:41:25 2003
+++ smarty/libs/plugins/function.html_image.php	Mon Jun 30 11:44:25 2003
@@ -113,8 +113,8 @@
                 return;
             }
         }
-		$_params = array('resource_type' => 'file', 'resource_name' => $_image_path);
-		require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.is_secure.php');
+        $_params = array('resource_type' => 'file', 'resource_name' => $_image_path);
+        require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.is_secure.php');
         if(!$smarty->security && !smarty_core_is_secure($_params, $smarty)) {
             $smarty->trigger_error("html_image: (secure) '$_image_path' not in secure directory", E_USER_NOTICE);
             return;



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