- bugfix of problem introduced with r4342 by replacing strlen() with isset()

This commit is contained in:
rodneyrehm
2011-10-05 17:11:01 +00:00
parent 8bab7fe522
commit aeec0783ec
4 changed files with 6 additions and 3 deletions

View File

@@ -1,4 +1,7 @@
===== trunk =====
05.10.2011
- bugfix of problem introduced with r4342 by replacing strlen() with isset()
04.10.2011
- bugfix assign() in plugins called in subtemplates did change value also in parent template
- bugfix of problem introduced with r4342 on math plugin

View File

@@ -37,7 +37,7 @@ class Smarty_Internal_Compile_Private_Block_Plugin extends Smarty_Internal_Compi
*/
public function compile($args, $compiler, $parameter, $tag, $function)
{
if (!isset($tag[6]) || substr($tag, -5) != 'close') {
if (!isset($tag[5]) || substr($tag, -5) != 'close') {
// opening tag of block plugin
// check and get attributes
$_attr = $this->getAttributes($compiler, $args);

View File

@@ -36,7 +36,7 @@ class Smarty_Internal_Compile_Private_Registered_Block extends Smarty_Internal_C
*/
public function compile($args, $compiler, $parameter, $tag)
{
if (!isset($tag[6]) || substr($tag,-5) != 'close') {
if (!isset($tag[5]) || substr($tag,-5) != 'close') {
// opening tag of block plugin
// check and get attributes
$_attr = $this->getAttributes($compiler, $args);

View File

@@ -364,7 +364,7 @@ class Smarty_Security {
return true;
}
// abort if we've reached root
if (($pos = strrpos($directory, DS)) === false || !isset($directory[2])) {
if (($pos = strrpos($directory, DS)) === false || !isset($directory[1])) {
break;
}
// bubble up one level