mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 11:24:27 +02:00
- bugfix allow only fixed string as file attribute at {extends} tag
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
===== SVN trunk =====
|
||||
22/04/2011
|
||||
- bugfix allow only fixed string as file attribute at {extends} tag
|
||||
|
||||
01/04/2011
|
||||
- bugfix do not run filters and default modifier when displaying the debug template
|
||||
- bugfix of embedded double quotes within multi line strings (""")
|
||||
|
@@ -40,8 +40,8 @@ class Smarty_Internal_Compile_Extends extends Smarty_Internal_CompileBase {
|
||||
|
||||
$_smarty_tpl = $compiler->template;
|
||||
$include_file = null;
|
||||
if (strpos($_attr['file'],'$_tmp') !== false) {
|
||||
$this->compiler->trigger_template_error('illegal value for file attribute', $this->compiler->lex->taglineno);
|
||||
if (strpos($_attr['file'],'$_tmp') !== false || strpos($_attr['file'],'$_smarty_tpl') !== false || strpos($_attr['file'],'::') !== false) {
|
||||
$this->compiler->trigger_template_error('a variable file attribute is illegal', $this->compiler->lex->taglineno);
|
||||
}
|
||||
eval('$include_file = ' . $_attr['file'] . ';');
|
||||
// create template object
|
||||
|
Reference in New Issue
Block a user