Skip to content

Commit

Permalink
- unclosed block tag in double quted string must throw compiler excep…
Browse files Browse the repository at this point in the history
…tion.

     #391 #392
  • Loading branch information
uwetews committed Oct 12, 2017
1 parent b271173 commit 6b97d5c
Show file tree
Hide file tree
Showing 7 changed files with 641 additions and 745 deletions.
2 changes: 2 additions & 0 deletions change_log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
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
- unclosed block tag in double quoted string must throw compiler exception.
https://github.com/smarty-php/smarty/issues/391 https://github.com/smarty-php/smarty/issues/392

07.10.2017
- bugfix modification of 9.8.2017 did fail on some recursive
Expand Down
2 changes: 2 additions & 0 deletions lexer/smarty_internal_templatelexer.plex
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,7 @@ class Smarty_Internal_Templatelexer
double_quote {
$this->token = Smarty_Internal_Templateparser::TP_QUOTE;
$this->yypushstate(self::DOUBLEQUOTEDSTRING);
$this->compiler->enterDoubleQuote();
}
singlequotestring {
$this->token = Smarty_Internal_Templateparser::TP_SINGLEQUOTESTRING;
Expand Down Expand Up @@ -693,6 +694,7 @@ 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
2 changes: 1 addition & 1 deletion lexer/smarty_internal_templateparser.y
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class Smarty_Internal_Templateparser
public $template_prefix = array();

/**
* security object
* template prefix array
*
* @var \Smarty_Internal_ParseTree[]
*/
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-24';
const SMARTY_VERSION = '3.1.32-dev-25';

/**
* define variable scopes
Expand Down
Loading

0 comments on commit 6b97d5c

Please sign in to comment.