Re: [SMARTY] Security

From: Date: Sun, 19 Jan 2003 20:07:52 +0000
Subject: Re: [SMARTY] Security
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7267@lists.php.net to get a copy of this message
$template_dir should be secured, SMARTY_DIR, no. Why would you access files from there? As for the debug template, just be sure that $smarty->debug_tpl is set to the location of the debug.tpl file, it should work even if it is not in a secure directory. Monte Ferdinand Beyer wrote:
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.


« previous php.smarty.general (#7267) next »