Commit Graph

55 Commits

Author SHA1 Message Date
Uwe.Tews
7075a1186d - bugfix Smarty3 did not handle hexadecimals like 0x0F as numerical value
- bugifx Smarty3 did not accept numerical constants like .1 or 2. (without a leading or trailing digit)
2010-06-13 12:52:36 +00:00
Uwe.Tews
6ac2489ea5 - bugfix the parser did not allow some smarty variables with special name like $for, $if, $else and others. 2010-05-31 17:58:23 +00:00
Uwe.Tews
b889d66dd9 - bugfix on object chaining using variable properties 2010-05-27 15:59:40 +00:00
Uwe.Tews
eb12b18929 - bugfix when passing parameter with numeric name like {foo 1='bar' 2='blar'} 2010-05-16 20:12:14 +00:00
Uwe.Tews
a15c0f85d1 14/05/2010
- bugfix compile new config files if compile_check and force_compile = false
- added variable static classes names to template syntax
2010-05-14 13:45:04 +00:00
Uwe.Tews
cf11940bf7 - update of template and config file parser because of minor parser generator bugs 2010-05-09 16:48:03 +00:00
Uwe.Tews
e71c82ff1d - bugfix on handling of variable method names at object chaning 2010-05-01 16:10:20 +00:00
Uwe.Tews
d7a629df0c - change default of $debugging_ctrl to 'NONE'
- optimization of compiled code of {foreach} and {for} loops
- change of compiler for config variables
2010-04-28 20:30:27 +00:00
Uwe.Tews
c8be3ed029 - removed parser restrictions in using true,false and null as ID 2010-04-12 18:22:53 +00:00
Uwe.Tews
24d5ad78f3 - bugfix allow array definitions as modifier parameter
- bugfix observe compile_check property when loading config files
- added the template object as third filter parameter
2010-03-29 15:41:01 +00:00
Uwe.Tews
eb4436e7be - bugfix on assign attribute at registered template objects
- make handling of modifiers on expression BC to Smarty2
2010-03-16 18:26:46 +00:00
Uwe.Tews
13089f2d64 - changed parsing of <?php and ?> back to Smarty2 behaviour 2010-03-11 22:26:46 +00:00
Uwe.Tews
d9e4646b60 - bugfix on accessing chained objects of static classes 2010-03-04 20:33:53 +00:00
Uwe.Tews
3898f593f4 - allow block tags inside double quoted string 2010-02-27 20:10:32 +00:00
Uwe.Tews
a4d34aebce - support of access to a class constant from an object (since PHP 5.3) 2010-02-26 13:28:54 +00:00
Uwe.Tews
0426dd0459 - bugfix on expressions in doublequoted string enclosed in backticks
- added security property $static_classes for static class security
2010-02-24 18:01:03 +00:00
Uwe.Tews
f393874262 - bugfix on parsing Smarty tags inside <?xml ... ?>
- bugfix on truncate modifier
2010-02-18 16:28:11 +00:00
Uwe.Tews
950c3a7307 2010-02-17 21:30:36 +00:00
Uwe.Tews
44feb88c19 - bugfix on <?xml ... ?> tags for all php_handling modes
- bugfix on parameter of variablefilter.htmlspecialchars.php plugin
2010-02-16 20:20:49 +00:00
Uwe.Tews
239462fde4 - bugfix $smarty.const... inside doublequoted strings and backticks was compiled into wrong PHP code 2010-02-14 20:26:57 +00:00
Uwe.Tews
cb0ba1908a - allow Smarty tags inside <? ... ?> tags in SMARTY_PHP_QUOTE and SMARTY_PHP_PASSTHRU mode
- bugfix at new "for" syntax like {for $x=1 to 10 step 2}
2010-02-10 20:51:36 +00:00
Uwe.Tews
2c570f25b9 - bugfix on $smarty.const... in double quoted strings 2010-01-17 15:52:37 +00:00
Uwe.Tews
19c0e47495 - bugfix on {if} tags 2010-01-13 15:33:54 +00:00
Uwe.Tews
51ed5b7861 - closed possible security hole at <?php ... ?> tags
- bugfix of config file parser on large config files
2010-01-12 22:12:19 +00:00
Uwe.Tews
f83fd47acc - changed back modifer handling in parser. Some restrictions still apply:
if modifiers are used in side {if...} expression or in mathematical expressions 
    parentheses must be used.
2010-01-12 19:05:26 +00:00
Uwe.Tews
aabc4352c2 - added optional nocache attribute to {block} tags in parent template
- updated <?php...?> handling supporting now heredocs and newdocs. (thanks to Thue Jnaus Kristensen)
2010-01-11 20:44:01 +00:00
Uwe.Tews
72219be200 - optimization of generated code for doublequoted strings containing variables
- rewrite of {function} tag handling
  - can now be declared in an external subtemplate
  - can contain nocache sections (nocache_hash handling)
  - can be called in noccache sections (nocache_hash handling)
  - new {call..} tag to call template functions with a variable name {call name=$foo}
- fixed nocache_hash handling in merged compiled templates
2009-12-31 16:38:12 +00:00
Uwe.Tews
44dd7830dd --- this is a major update with a couple of internal changes ---
- new config file lexer/parser (thanks to Thue Jnaus Kristensen)
- template lexer/parser fixes for PHP and {literal} handing (thanks to Thue Jnaus Kristensen)
- fix on registered plugins with different type but same name
- rewrite of plugin handling (optimized execution speed)
- closed a security hole regarding PHP code injection into cache files
- fixed bug in clear cache handling
- Renamed a couple of internal classes
- code cleanup for merging compiled templates
- couple of runtime optimizations (still not all done)
2009-12-27 15:06:49 +00:00
Uwe.Tews
be04e0904c - fixed {strip} handling in auto literals 2009-12-17 20:39:11 +00:00
Uwe.Tews
8d5fab37e8 - bugfix on object as array index 2009-12-15 00:02:10 +00:00
Uwe.Tews
7406a7386a - allow !$foo as value 2009-12-13 20:21:54 +00:00
Uwe.Tews
74a20f4650 - removed unneeded lexer code 2009-12-05 15:10:47 +00:00
Uwe.Tews
1723b98ce0 - fixed problem when a cached file was fetched several times 2009-12-05 13:38:09 +00:00
Uwe.Tews
7e6da87134 - added max attribute to for loop
- added security mode allow_super_globals
2009-12-04 15:44:47 +00:00
Uwe.Tews
19413d8dab - bugfix for {$foo.$x.$y.$z} 2009-12-04 00:18:54 +00:00
Uwe.Tews
1573bf813c - added {for $foo = 1 to 5 step 2} syntax 2009-12-03 22:39:45 +00:00
Uwe.Tews
a8a17d09e9 - fixed parsing of names of special formated tags like if,elseif,while,for,foreach
- removed direct access to constants in templates because of some syntax problems
2009-12-01 17:08:54 +00:00
Uwe.Tews
732ab27055 - ignore compile_id at debug template
- added direct access to constants in templates
- some lexer/parser optimizations
2009-11-28 18:48:02 +00:00
Uwe.Tews
255eec00ae - bugfix double quoted string 2009-11-27 00:43:38 +00:00
Uwe.Tews
be47f5773e - fix on checking dynamic varibales with error_unassigned = true 2009-11-26 23:36:30 +00:00
Uwe.Tews
6b506c4b40 - allow integer as attribute name in plugin calls 2009-11-18 21:51:20 +00:00
Uwe.Tews
724a31ce11 - added {foreach $array as $key=>$value} syntax 2009-11-17 18:09:29 +00:00
Uwe.Tews
9f505c1c23 - lexer/parser optimizations on quoted strings 2009-11-15 19:05:53 +00:00
Uwe.Tews
960fd1b3a9 - parser could run into a PHP error on wrong file attribute 2009-11-14 20:09:18 +00:00
Uwe.Tews
d482a8b137 - bugfix modifiers on registered object tags 2009-11-14 10:40:08 +00:00
Uwe.Tews
ff8c1050e4 - lexer/parser bugfix 2009-11-09 16:30:56 +00:00
Uwe.Tews
2e61999def - fixed alphanumeric array index 2009-11-08 21:01:22 +00:00
Uwe.Tews
ce18a4cc15 - bugfix on complex double quoted strings 2009-11-08 16:17:51 +00:00
Uwe.Tews
6a9924162b - lexer/parser fix for null,true,false as array index 2009-11-06 17:40:20 +00:00
Uwe.Tews
caac4bb841 - added typecasting support for template variables 2009-11-04 16:03:25 +00:00