Skip to content

Commit

Permalink
-bugfix fix implementation of unclosed block tag in double quoted str…
Browse files Browse the repository at this point in the history
…ing of 12.10.2017

    #396 #397
    #391 #392
  • Loading branch information
uwetews committed Oct 18, 2017
1 parent 6b97d5c commit e4f41ad
Show file tree
Hide file tree
Showing 6 changed files with 512 additions and 516 deletions.
5 changes: 5 additions & 0 deletions change_log.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
===== 3.1.32 - dev ===
18.10.2017
-bugfix fix implementation of unclosed block tag in double quoted string of 12.10.2017
https://github.com/smarty-php/smarty/issues/396 https://github.com/smarty-php/smarty/issues/397
https://github.com/smarty-php/smarty/issues/391 https://github.com/smarty-php/smarty/issues/392

12.10.2017
- bugfix $smarty.block.child and $smarty.block.parent could not be used like any
$smarty special variable https://github.com/smarty-php/smarty/issues/393
Expand Down
1 change: 0 additions & 1 deletion lexer/smarty_internal_templatelexer.plex
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,6 @@ class Smarty_Internal_Templatelexer
double_quote {
$this->token = Smarty_Internal_Templateparser::TP_QUOTE;
$this->yypopstate();
$this->compiler->leaveDoubleQuote();
}
backtick dollar {
$this->token = Smarty_Internal_Templateparser::TP_BACKTICK;
Expand Down
1 change: 1 addition & 0 deletions lexer/smarty_internal_templateparser.y
Original file line number Diff line number Diff line change
Expand Up @@ -1250,6 +1250,7 @@ doublequoted_with_quotes(res) ::= QUOTE QUOTE. {
}

doublequoted_with_quotes(res) ::= QUOTE doublequoted(s) QUOTE. {
$this->compiler->leaveDoubleQuote();
res = s->to_smarty_php($this);
}

Expand Down
2 changes: 1 addition & 1 deletion libs/Smarty.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class Smarty extends Smarty_Internal_TemplateBase
/**
* smarty version
*/
const SMARTY_VERSION = '3.1.32-dev-25';
const SMARTY_VERSION = '3.1.32-dev-26';

/**
* define variable scopes
Expand Down
1 change: 0 additions & 1 deletion libs/sysplugins/smarty_internal_templatelexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,6 @@ function yy_r5_7()
{
$this->token = Smarty_Internal_Templateparser::TP_QUOTE;
$this->yypopstate();
$this->compiler->leaveDoubleQuote();
}

function yy_r5_8()
Expand Down
Loading

0 comments on commit e4f41ad

Please sign in to comment.