Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Release 3.1.31 Smarty_Internal_TemplateCompilerBase bug

 
Post new topic   Reply to topic    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
tomphantoo
Smarty n00b


Joined: 09 Apr 2017
Posts: 1

PostPosted: Sun Apr 09, 2017 1:28 am    Post subject: Release 3.1.31 Smarty_Internal_TemplateCompilerBase bug Reply with quote

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
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5053
Location: Hamburg / Germany

PostPosted: Fri Apr 14, 2017 11:53 am    Post subject: Reply with quote

the fix is now on github in the master branch
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Bugs All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP