Re: petition against registering
| From: | Hans-Peter Oeri | Date: | Wed, 10 Oct 2001 08:36:00 +0000 |
| Subject: | Re: petition against registering | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-1660@lists.php.net to get a copy of this message | ||
Hi!
On Wed, 10 Oct 2001, Ivo Jansch wrote:
> Instead of doing $smarty->register_funtion("tag","myfunc"), I would now
> have to do $smarty->allowed_funcs[] = "myfunc".
> So that's not really a benefit.
It actually IS a benefit if an empty list equals "all functions allowed".
I suppose the majority of smarty uses don't use restricted variants of any
kind, and they don't need to register then.
As soon as we need some kind of "security", we need a register of allowed
functions and we loose the benefit. I don't think there is a solution for
these "secured" variants.
I therefore think the steps outlined by Monte, with an optional step for
those wanting this security stuff (for whatever reason), would be
optimal.
Don't conform!
IkKampfCaspar75