[prev in list] [next in list] [prev in thread] [next in thread]
List: smarty-cvs
Subject: [SMARTY-CVS] cvs: smarty /libs/plugins function.html_image.php
From: "Messju Mohr" <messju () php ! net>
Date: 2003-06-30 15:44:25
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic