config array vars
"Tarik ANSARI" <[email protected]>
| Newsgroups | gmane.comp.php.smarty.devel |
|---|---|
| Message-ID | <[email protected]> |
I took a look into the smarty code, and I begin by proposing a new
preg_match string for _set_config_var function (Config_File.class.php),
before having a headache :-D (line 357 of 1.6.2 source)
if
(!preg_match("/^[a-zA-Z_][a-zA-Z0-9_]*((\[[0-9]+\])|(.[a-zA-Z_][a-zA-Z0-9_]*
))*$/", $var_name)) {
I did not use anymore the \w match pattern because it seems to rely on local
settings, for example if the local is ever french, it would accept variable
names with accents : var_énorme, that is not correct.
It looks like there will be a lot of things to change in code...
Tarik
--
http://perso.efrei.fr/~ansari/
--
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php