|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
tomphantoo Smarty n00b
Joined: 09 Apr 2017 Posts: 1
|
Posted: Sun Apr 09, 2017 1:28 am Post subject: Release 3.1.31 Smarty_Internal_TemplateCompilerBase bug |
|
|
Re V.3.1.31
Smarty_Internal_TemplateCompilerBase::compileTag2() includes several merges into a $new_args array. The last such merge omits the array-check included in the others, which causes a crash sometimes. Lines 666 ff. should replicate the other instances in the method:
Code: |
foreach ($args as $key => $mixed) {
if (is_array($mixed)) {
$new_args = array_merge($new_args, $mixed);
} else {
$new_args[ $key ] = $mixed;
}
}
|
|
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Fri Apr 14, 2017 11:53 am Post subject: |
|
|
the fix is now on github in the master branch |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|