Re: Smarty 2.0.1 - a bug (security + debugging) - ???

From: Date: Wed, 03 Apr 2002 19:55:02 +0000
Subject: Re: Smarty 2.0.1 - a bug (security + debugging) - ???
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3473@lists.php.net to get a copy of this message
> This has something to do with one of the {if} tags in your template. Can > you try eliminating them one by one until the message disappears and the > post the offending one? I'm sorry, but - just as I wrote - this is YOUR template, the one which comes with Smarty-2.0.1.tar.gz - "templates/index.tpl". Just try adding "$smarty->security = true;" as a third line in your "index.php". Does it work? For me - not! Eliminating lines from "templates/index.tpl" does not help either - the errors are displayed before the first line of the generated page. > It might be nice, but there are problems with this approach. First of > all, you wouldn't be able to use a non-modified variable for any purpose > because there would be no way to specify it as such. Secondly, the > default modifier would have to come either as the very first modifier or > as the very last one. Which approach is correct is not clear. I thought about something like postfilter, but only for variables... It would be reasonable to have templates to format data and then - some kind of variable postfilter to escape them for HTML. --- Michal

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