Re: [SMARTY-GENERAL] Smarty 2.0.1 - a bug (security + debugging) and a recommendation

From: Date: Fri, 05 Apr 2002 10:15:45 +0000
Subject: Re: [SMARTY-GENERAL] Smarty 2.0.1 - a bug (security + debugging) and a recommendation
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3511@lists.php.net to get a copy of this message
Hi, ----- Original Message ----- From: "Bogien" <bogien@conecto.pl> To: <smarty-general@lists.php.net> Sent: Wednesday, April 03, 2002 1:57 PM Subject: [SMARTY-GENERAL] Smarty 2.0.1 - a bug (security + debugging) and a recommendation | 2. A recommendation - I think that it can be useful to add something like | "default/global modifiers" - functions that will be applied to all the | Smarty variables in the template. It is pretty tiring to write: | | > blah blah blah {$text1|htmlspecialchars} | > {$text2|htmlspecialchars} {$text3|htmlspecialchars} | > abc def {$text4|htmlspecialchars} 123 | | It would be nice to store the data in the database "as they are" and | then escape < > chars with some global/default modifier function. | I think you could play with pre and post filters to achieve this. Then it's totally up to whether the default modifier is to come as the very first modifier or as the very last one, or which variables should be modified by the default one and which ones should be unaffected. Papp Gyozo - pgerzson@freestart.hu

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