- bugfix E_NOTICE message was created during compilation when ASP tags '<%' or '%>' are in template source text

This commit is contained in:
Uwe Tews
2014-10-23 18:27:12 +02:00
parent fc55a39d67
commit a22ee9f264
2 changed files with 5 additions and 3 deletions

View File

@@ -1,4 +1,6 @@
===== 3.1.22-dev ===== (xx.xx.2014)
- bugfix E_NOTICE message was created during compilation when ASP tags '<%' or '%>' are in template source text
===== 3.1.21 ===== (18.10.2014)
18.10.2014
- composer moved to github

View File

@@ -3453,20 +3453,20 @@ class Smarty_Internal_Templateparser#line 80 "smarty_internal_templateparser.php
function yy_r11()
{
if ($this->php_handling == Smarty::PHP_PASSTHRU) {
$this->_retvalue = new _smarty_text($this, st);
$this->_retvalue = new _smarty_text($this, $this->yystack[$this->yyidx + 0]->minor);
} elseif ($this->php_handling == Smarty::PHP_QUOTE) {
$this->_retvalue = new _smarty_text($this, htmlspecialchars('%>', ENT_QUOTES));
} elseif ($this->php_handling == Smarty::PHP_ALLOW) {
if ($this->asp_tags) {
$this->_retvalue = new _smarty_tag($this, $this->compiler->processNocacheCode('%>', true));
} else {
$this->_retvalue = new _smarty_text($this, st);
$this->_retvalue = new _smarty_text($this, $this->yystack[$this->yyidx + 0]->minor);
}
} elseif ($this->php_handling == Smarty::PHP_REMOVE) {
if ($this->asp_tags) {
$this->_retvalue = null;
} else {
$this->_retvalue = new _smarty_text($this, st);
$this->_retvalue = new _smarty_text($this, $this->yystack[$this->yyidx + 0]->minor);
}
}
}