monte.ohrt
8842e79107
commit 3.1 into the trunk
2011-09-16 14:19:56 +00:00
rodneyrehm
bc96213c44
fix smarty security_policy issue in plugins {html_image} and {fetch}
2011-06-09 07:52:58 +00:00
uwe.tews@googlemail.com
1757b274d6
- bugfix on error message in smarty_internal_compile_block.php
...
- bugfix mb handling in strip modifier
- bugfix for Smarty2 style registered compiler function on unnamed attribute passing like {tag $foo $bar}
2011-03-28 22:18:39 +00:00
uwe.tews@googlemail.com
fe26cf256e
- bugfix replace modifier did not work in 3.0.7 on systems without multibyte support
...
- bugfix {$smarty.template} could return in 3.0.7 parent template name instead of
child name when it needed to compile
2011-03-01 19:47:44 +00:00
monte.ohrt
af19a07bf3
flip test for ctype_digit, speed up
2011-01-19 15:13:27 +00:00
monte.ohrt
2d75fb0098
avoid preg for string match
2011-01-17 21:49:19 +00:00
monte.ohrt
eba1d212f2
remove overlib plugins - no longer supported
2011-01-04 16:15:04 +00:00
monte.ohrt
d0b232e264
fix mb_str_replace to work with utf8
2011-01-03 23:19:22 +00:00
monte.ohrt
c0b6f29077
update html_options to support class and id attrs
2010-12-21 15:59:25 +00:00
uwe.tews@googlemail.com
dd332db455
-bugfix in function.fetch.php, reference to undefined $smarty
2010-11-17 23:15:12 +00:00
uwe.tews@googlemail.com
7135787127
- bugfix isset() did not allow multiple parameter
...
- improvment of some error messages
- bugfix html_image did use removed property $request_use_auto_globals
2010-11-14 15:08:44 +00:00
uwe.tews@googlemail.com
fe63ad36b8
- reverted location of loadPlugin() to Smarty class
...
- fixed comments in plugins
2010-11-13 04:10:52 +00:00
uwe.tews@googlemail.com
5e21770fe5
- reactivated $error_reporting property handling
...
- fixed typo in compile_continue
- fixed security in {fetch} plugin
- changed back plugin parameters to two. second is template object
with transparent access to Smarty object
- fixed {config_load} scoping form compile time to run time
2010-11-12 23:42:32 +00:00
uwe.tews@googlemail.com
f044178bad
- major update including some API changes
2010-11-11 21:34:36 +00:00
uwe.tews@googlemail.com
dde2219004
- bugfix on some compiling modifiers
2010-09-25 13:31:57 +00:00
uwe.tews@googlemail.com
e8ab747a60
- bugfix on default modifier
2010-09-22 13:06:47 +00:00
Uwe.Tews
a2f50cebd4
- bugfix {counter} and {cycle} plugin assigned result to smarty variable not in local(template) scope
...
- bugfix templates containing just {strip} {/strip} tags did produce an error
2010-09-07 16:24:34 +00:00
Uwe.Tews
96e3d9937a
- fixed E_STRICT errors for uninitialized variables
2010-08-23 14:40:10 +00:00
monte.ohrt
21d507a5cb
fix formatting
2010-08-17 15:39:51 +00:00
Uwe.Tews
ad921936b0
- remove exception_handler property from Smarty class
...
- added Smarty's own exceptions SmartyException and SmartyCompilerException
2010-08-13 10:39:51 +00:00
Uwe.Tews
cf231447d2
- bugfix when cascading some modifier like |strip|strip_tags modifier
2010-08-06 13:43:52 +00:00
Uwe.Tews
08874b0965
- added plugin type modifiercompiler to produce compiled modifier code
...
- changed standard modifier plugins to the compiling versions whenever possible
2010-08-05 17:50:16 +00:00
Uwe.Tews
c1e1c03892
- make the date_format modifier work also on objects of the DateTime class
...
- implementation of parsetrees in the parser to close security holes and remove unwanted empty line in HTML output
2010-07-14 22:47:37 +00:00
monte.ohrt
50637fccdd
add DateTime support, clean up some logic
2010-07-13 22:57:47 +00:00
Uwe.Tews
db38a0aaec
- bugfix on assigning multidimensional arrays within templates
...
- corrected bugfix for truncate modifier
2010-07-08 18:30:03 +00:00
Uwe.Tews
396d7aa8a5
- bugfix support of script files relative to trusted_dir
2010-07-07 22:08:10 +00:00
Uwe.Tews
c8f22fe247
- bugfix the truncate modifier needs to check if the string is utf-8 encoded or not
2010-07-07 16:34:06 +00:00
Uwe.Tews
c83ef6792c
- create exception on recursive {extends} calls
...
- fixed reported line number at "unexpected closing tag " exception
- bugfix on escape:'mail' modifier
- drop exception if 'item' variable is equal 'from' variable in {foreach} tag
2010-07-06 20:00:41 +00:00
Uwe.Tews
cbe2f3356f
- removed call_user_func_array calls for optimization of compiled code when using registered modifiers and plugins
...
- updated comments
2010-07-01 19:57:56 +00:00
Uwe.Tews
62490ae8c0
- removed /* vim: set expandtab: */ comments
...
- bugfix of auto literal problem introduce with fix of 31/05/2010
2010-06-01 19:11:48 +00:00
Uwe.Tews
2ad1d7e102
- make scope of {counter} and {cycle} tags again global as in Smarty2
2010-05-27 19:56:39 +00:00
Uwe.Tews
d44ffe9132
- security fix in {math} plugin
2010-04-17 10:24:44 +00:00
monte.ohrt
09c208eda6
revert lables on optgroup tags
2010-04-16 13:49:46 +00:00
monte.ohrt
4e8602585e
remove label from option tag (unnecessary):wq
2010-04-12 19:04:02 +00:00
monte.ohrt
7300133dc6
move replacement func
2010-03-01 14:56:24 +00:00
monte.ohrt
0d3137b511
fix mb check
2010-03-01 14:52:01 +00:00
monte.ohrt
c5b0288087
remove unnecessary param for preg
2010-02-18 14:45:27 +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
monte.ohrt
c188b50ecc
change ereg to preg
2010-02-16 15:20:47 +00:00
Uwe.Tews
b5ff9e450f
- bugfix for {php} tag (trow an exception if allow_php_tag = false)
2010-01-01 20:19:26 +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
monte.ohrt
cd5cc650d8
add automagic formatting for date() and strftime()
2009-12-05 05:30:20 +00:00
Uwe.Tews
7e45bcf527
- replaced most hard errors (exceptions) by softerrors(trigger_error) in plugins
2009-12-01 20:34:32 +00:00
Uwe.Tews
e5cd6c8a17
- removed cache resource plugin for mysql from the distribution
2009-12-01 19:36:58 +00:00
Uwe.Tews
4c4ce1e5bf
- update of comment
2009-11-30 21:20:09 +00:00
Uwe.Tews
9f18a6bf62
- added comment with MYSQL create table command
2009-11-27 21:06:17 +00:00
Uwe.Tews
27d3a21fb4
- added cache resource MYSQL plugin
2009-11-27 20:46:56 +00:00
Uwe.Tews
e081d85b79
- bugfix cycle plugin
2009-11-17 20:17:51 +00:00
Uwe.Tews
a63bc0f83b
- sanitize compile_id and cache_id (replace illegal chars with _)
...
- use _dir_perms and _file_perms properties at file creation
- new constant SMARTY_RESOURCE_DATE_FORMAT (default '%b %e, %Y') which is used as default format in modifier date_format
2009-11-17 17:46:03 +00:00
monte.ohrt
72de1a7b33
fix delimiter setting
2009-11-17 01:31:44 +00:00