cvs: smarty /libs/plugins function.html_image.php
"Messju Mohr" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsmessju1074179073@cvsserver> |
messju Thu Jan 15 10:04:33 2004 EDT
Modified files:
/smarty/libs/plugins function.html_image.php
Log:
forgot to remove duplicate is_secure()-check
Index: smarty/libs/plugins/function.html_image.php
diff -u smarty/libs/plugins/function.html_image.php:1.25 smarty/libs/plugins/function.html_image.php:1.26
--- smarty/libs/plugins/function.html_image.php:1.25 Thu Jan 15 10:00:09 2004
+++ smarty/libs/plugins/function.html_image.php Thu Jan 15 10:04:33 2004
@@ -113,12 +113,6 @@
return;
}
}
- $_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;
- }
if(!isset($params['width'])) {
$width = $_image_data[0];
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php