Commit Graph

810 Commits

Author SHA1 Message Date
Uwe Tews
c7ba22dc98 - bugfix a nocache template variable used as parameter at {insert} was by mistake cached 2015-04-23 02:34:28 +02:00
Uwe Tews
de892651c2 - bugfix at a template function containing nocache code a parmeter could overwrite a template variable of same name 2015-04-20 22:59:45 +02:00
Uwe Tews
6fb27d5ae4 strip property must now be public 2015-04-07 02:11:20 +02:00
Uwe Tews
a92302d059 move strip processing from parser to compiler 2015-04-02 01:42:53 +02:00
Uwe Tews
e9fd2354ef move compileVariable() from parser to compiler 2015-04-02 01:35:16 +02:00
Uwe Tews
ea2a566b1f - bugfix Smarty_Security->allow_constants=false; did also disable true, false and null (change of 16.03.2015)
- improvement added a whitelist for trusted constants to security Smarty_Security::$trusted_constants (forum topic 25471)
2015-03-28 03:58:08 +01:00
Uwe Tews
443ae8c216 - bugfix problems when {function}{/function} defined a template function in a cached subtemplate and it was called {call} from a not cached subtemplate {forum topic 25468} 2015-03-23 00:39:22 +01:00
Uwe Tews
2a005ac6d6 - bugfix correct update of global variable values on exit of template functions. (reported under Smarty Developers) 2015-03-20 18:25:59 +01:00
Uwe Tews
4ecc75344f - bugfix make sure that function properties get saved only in compiled files containing the fuction definition {forum topic 25452} 2015-03-20 00:41:55 +01:00
Uwe Tews
03c7b786a0 Clean up template functions property structure 2015-03-17 04:53:57 +01:00
Uwe Tews
ab1272a2e4 fix whitespaces on tags included in double quoted strings 2015-03-17 04:31:51 +01:00
Uwe Tews
6df84b6fe3 - bugfix {block}{/block} tags did not work inside double quoted issues #18 2015-03-17 03:31:44 +01:00
Uwe Tews
e7ad5909e5 - bugfix Smarty_Security->allow_constants=false; did not disallow direct usage of defined constants like {SMARTY_DIR} {forum topic 25457} 2015-03-17 02:29:19 +01:00
Uwe Tews
eead9c81e9 - bugfix problems with {function}{/function} and {call} tags in different subtemplate cache files {forum topic 25452} 2015-03-17 01:10:51 +01:00
Uwe Tews
7b7118eea9 - bugfix $smarty->compile_check must be restored before rendering of a just updated cache file {forum 25452} 2015-03-15 02:01:07 +01:00
Uwe Tews
7fe81e6d79 - bugfix {nocache} {/nocache} tags corrupted code when used within a nocache section caused by a nocache template variable 2015-03-14 15:17:58 +01:00
Uwe Tews
8020144d46 - bugfix template functions defined with {function} in an included subtemplate could not be called in nocache
mode with {call... nocache} if the subtemplate had it's own cache file {forum 25452}
2015-03-14 12:02:57 +01:00
Uwe Tews
e9b1f296cb - bugfix {include ... nocache} with variable file or compile_id attribute was not executed in nocache mode. 2015-03-10 18:06:05 +01:00
Uwe Tews
8892f358ad - bugfix __get() was called when loading config files 2015-03-07 01:44:30 +01:00
Uwe Tews
b1cd4cd7d2 Return to saved output buffer level on exceptions 2015-03-01 21:39:54 +01:00
Uwe Tews
464b37c053 optimize compiled code of {foreach} 2015-02-15 16:58:42 +01:00
Uwe Tews
8082bc7471 get rid of smarty object self pointer 2015-02-15 01:45:37 +01:00
Uwe Tews
f93cfc63ad get rid of reference parameter 2015-02-14 21:57:42 +01:00
Uwe Tews
6925c98af0 - bugfix multiple Smarty::fetch() of same template when $smarty->merge_compiled_includes = true; could cause function alreday defined error 2015-02-12 23:56:43 +01:00
Uwe Tews
aec380839c - bugfix recursive {includes} did create E_NOTICE message when $smarty->$merge_compiled_includes = true; 2015-02-11 06:57:17 +01:00
Uwe Tews
05f5ddf573 remove comments 2015-02-09 23:52:25 +01:00
Uwe Tews
d62d394345 update 2015-02-08 22:22:52 +01:00
Uwe Tews
d288e58692 update 2015-02-08 21:36:32 +01:00
Uwe Tews
b2b114d5b8 udate 2015-02-08 21:21:30 +01:00
Uwe Tews
10bf6f6032 add isset($_smarty_tpl) to avoid errors when unit test runs in separate process 2015-02-08 21:10:45 +01:00
Uwe Tews
1fc2b9ece2 add isset($_smarty_tpl) to avoid errors when unit test runs in separate process 2015-02-08 19:57:14 +01:00
Uwe Tews
1a781b39b1 new feature: security can now control access to static methods and properties
see also NEW_FEATURES.txt
2015-01-22 03:53:01 +01:00
Uwe Tews
ec19bc763f - bugfix 'self::' and 'parent::' was interpreted in template syntax as static class 2015-01-21 23:30:37 +01:00
Uwe Tews
8d5fa36a80 - bugfix clearCompiledTemplates(), clearAll() and clear() could try to delete whole drive
at wrong path permissions because realpath() fail (forum 25397)
2015-01-21 22:14:25 +01:00
Uwe Tews
85f24ce413 convert writeFile() to object method to remove a vulnerability 2015-01-21 21:12:00 +01:00
Uwe Tews
7a1df12afa - bugfix clearCompiledTemplates() could try to delete whole drive
at wrong path permissions because realpath() fail (forum 25397)
2015-01-20 22:33:38 +01:00
Uwe Tews
4428d72e6d Update testInstall() and move it into its own class 2015-01-12 22:12:20 +01:00
Uwe Tews
593f984f6a load source, compiled and cache resource manually in normal flow (avoid __get()) 2015-01-07 17:46:12 +01:00
Uwe Tews
740a583c7c Use require_once 2015-01-07 16:46:03 +01:00
Uwe Tews
b3f8ddefd2 remove redundant overloaded methods 2015-01-06 04:42:49 +01:00
Uwe Tews
43f043364f fix case in class name 2015-01-06 01:18:58 +01:00
Uwe Tews
111a10bb17 Move some classes into its own files 2015-01-04 05:51:52 +01:00
Uwe Tews
d528234a97 Small optimization 2015-01-04 05:51:03 +01:00
Uwe Tews
66eac7bc2a fix code frame of inline (merged) subtemplate 2015-01-03 21:32:33 +01:00
Uwe Tews
8b71e591c0 some minor speed optimization 2015-01-03 21:27:33 +01:00
Uwe Tews
f236905fed create different compiled templates and config files
Smarty does now automatically detect a change of the $merge_compiled_includes and $escape_html
    property and create different compiled templates files depending on the setting.

    Same applies to config files and the $config_overwrite, $config_booleanize and
    $config_read_hidden properties.
2015-01-03 07:36:07 +01:00
Uwe Tews
cfdd53c6b4 restructure config file processing
move code into an extension class
use Smarty_Internal_Template
2015-01-02 22:30:53 +01:00
Uwe Tews
75ad0b4da5 move default template handling into an extesion class 2015-01-02 10:48:07 +01:00
Uwe Tews
0a3579f9ca restructure template processing
Code was moved into classes it better belongs to.
This does reduce also Smarty's memory footprint
2015-01-02 09:12:01 +01:00
Uwe Tews
8c1f400c09 remove \r from template source before compiling 2015-01-02 08:25:27 +01:00