Security
| From: | Ferdinand Beyer | Date: | Sun, 19 Jan 2003 18:39:00 +0000 |
| Subject: | Security | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-7264@lists.php.net to get a copy of this message | ||
Hi there!
IMO $template_dir and SMARTY_DIR should be considered
internally secure. It doesn't make sense to set $security = true and
not to allow to access templates in $template_dir.
That's why in current version you always have to update two places
when changing the template dir. Furthermore with default
configuration and $security = true it is not possible to access the
debug template!
So I think you agree when I suggest to trust these dirs internally!
By the way, I've found out that Smarty even uses caching when an
error occurred - eg. an access violation error because of not having
$template_dir included in $secure_dir. That may cause frustration
when you solve the problem but Smarty still seems to produce the
same error.
--
Ferdinand Beyer
<fbeyer@clickhand.de>