diff options
| author | Uwe Tews <uwe.tews@googlemail.com> | 2017-10-12 20:15:42 +0200 |
|---|---|---|
| committer | Uwe Tews <uwe.tews@googlemail.com> | 2017-10-12 20:15:42 +0200 |
| commit | 6b97d5cdd5b2b00651fd38030284beab5d39e8dd (patch) | |
| tree | 61f8d56831a088c4410124af0bf07367cb3cb052 /lexer/smarty_internal_templatelexer.plex | |
| parent | b271173a2d9b711d533400ffdb3108eeeadd4cfb (diff) | |
| download | smarty-6b97d5cdd5b2b00651fd38030284beab5d39e8dd.tar.gz smarty-6b97d5cdd5b2b00651fd38030284beab5d39e8dd.tar.bz2 smarty-6b97d5cdd5b2b00651fd38030284beab5d39e8dd.zip | |
- unclosed block tag in double quted string must throw compiler exception.
https://github.com/smarty-php/smarty/issues/391 https://github.com/smarty-php/smarty/issues/392
Diffstat (limited to 'lexer/smarty_internal_templatelexer.plex')
| -rw-r--r-- | lexer/smarty_internal_templatelexer.plex | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lexer/smarty_internal_templatelexer.plex b/lexer/smarty_internal_templatelexer.plex index cbd13626..189569c9 100644 --- a/lexer/smarty_internal_templatelexer.plex +++ b/lexer/smarty_internal_templatelexer.plex @@ -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; @@ -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; |
