RE: Announcement: Smarty 1.4.3 now available

From: Date: Thu, 21 Jun 2001 07:15:03 +0000
Subject: RE: Announcement: Smarty 1.4.3 now available
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-920@lists.php.net to get a copy of this message
Hi, > Should Smarty be responsible for this security test? This is extra logic > that must be put into every template page and checked for on every > invocation of the script(s). I think thats not the job of smarty to compensate badly configured webservers. Or is X-Windows responsible for a secure ftpd-configuration?? Putting the template, cache, config files outside docroot is the best way to go. Another way is to keep them in 'secured' places in docroot. E.g.: /WEB-INF/templates/ Secure that directory: <LocationMatch "(WEB-INF)"> AllowOverride None deny from all </LocationMatch> Or (if vhost config not accessible) in .htaccess like this: # deny most common except .php <FilesMatch "\.(html|inc|tpl|h|ihtml|sql|ini|conf|class|bin)$"> deny from all </FilesMatch> # deny compiled templates <FilesMatch "\.html.php$"> deny from all </FilesMatch> Andi www.thyrell.de

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