Smarty Built-in Function PHP
| From: | Andreas Kossmeier | Date: | Thu, 17 May 2001 19:49:06 +0000 |
| Subject: | Smarty Built-in Function PHP | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-773@lists.php.net to get a copy of this message | ||
hi,
http://www.phpinsider.com/php/code/Smarty/docs/x587.htm#BUILTIN.FUNCTION.PHP
i just recognized, that version 1.4.0 allows embedding php code
regardless of the $php_handling setting through the function {php}.
even if you set $php_handling to SMARTY_PHP_REMOVE, you now can execute
php code on the server. maybe you should give a hint in your docs that
you have to unregister the function to prevent template designers from
executing php code, it may be a security issue in some cases.
greetings,
andreas
--
andreas kossmeier
bergfex.at - http://www.bergfex.at