- bugfix change of 08.10.2014 could create E_NOTICE meassage when using "<?php" tags

This commit is contained in:
Uwe.Tews@googlemail.com
2014-10-12 15:09:52 +00:00
parent 6af75db3c3
commit f03fc13bc9
3 changed files with 6 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
===== 3.1.21-dev ===== (xx.xx.2014) ===== 3.1.21-dev ===== (xx.xx.2014)
12.10.2014 12.10.2014
- bugfix a comment like "<script{*foo*} language=php>" bypassed $php_handling checking (Thue Kristensen) - bugfix a comment like "<script{*foo*} language=php>" bypassed $php_handling checking (Thue Kristensen)
- bugfix change of 08.10.2014 could create E_NOTICE meassage when using "<?php" tags
===== 3.1.20 ===== (09.10.2014) ===== 3.1.20 ===== (09.10.2014)
08.10.2014 08.10.2014

View File

@@ -339,7 +339,7 @@ class Smarty_Internal_Templatelexer
function yy_r1_14($yy_subpatterns) function yy_r1_14($yy_subpatterns)
{ {
if (in_array($this->value, Array('<?', '<?=', '<?php')) || $script = strpos($this->value, '<s') === 0) { if ($script = strpos($this->value, '<s') === 0 || in_array($this->value, Array('<?', '<?=', '<?php'))) {
if ($script) { if ($script) {
$this->is_phpScript = true; $this->is_phpScript = true;
} }
@@ -1068,7 +1068,7 @@ class Smarty_Internal_Templatelexer
function yy_r3_3($yy_subpatterns) function yy_r3_3($yy_subpatterns)
{ {
if (in_array($this->value, Array('<?', '<?=', '<?php')) || $script = strpos($this->value, '<s') === 0) { if ($script = strpos($this->value, '<s') === 0 || in_array($this->value, Array('<?', '<?=', '<?php'))) {
if ($script) { if ($script) {
$this->is_phpScript = true; $this->is_phpScript = true;
} }

View File

@@ -4444,13 +4444,14 @@ class Smarty_Internal_Templateparser#line 80 "smarty_internal_templateparser.php
while ($this->yyidx >= 0) { while ($this->yyidx >= 0) {
$stack = $this->yy_pop_parser_stack(); $stack = $this->yy_pop_parser_stack();
} }
#line 76 "smarty_internal_templateparser.y" #line 75 "smarty_internal_templateparser.y"
$this->successful = !$this->internalError; $this->successful = !$this->internalError;
$this->internalError = false; $this->internalError = false;
$this->retvalue = $this->_retvalue; $this->retvalue = $this->_retvalue;
//echo $this->retvalue."\n\n"; //echo $this->retvalue."\n\n";
#line 3165 "smarty_internal_templateparser.php"
#line 3166 "smarty_internal_templateparser.php"
} }
public function doParse($yymajor, $yytokenvalue) public function doParse($yymajor, $yytokenvalue)