From 4b0e85ea9442d881270491c4d975ffd903d0b7b0 Mon Sep 17 00:00:00 2001 From: andrey Date: Wed, 20 Mar 2002 16:15:01 +0000 Subject: [PATCH] *** empty log message *** --- Smarty_Compiler.class.php | 2 +- libs/Smarty_Compiler.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Smarty_Compiler.class.php b/Smarty_Compiler.class.php index 59f1f8af..54fa23df 100644 --- a/Smarty_Compiler.class.php +++ b/Smarty_Compiler.class.php @@ -987,7 +987,7 @@ class Smarty_Compiler extends Smarty { '$', '#', or '%') and not enclosed in single or double quotes we single-quote it. */ else if ($quote && !in_array($token{0}, $var_delims) && - !(($token{0} == '"' || $token[0] == "'") && + !(($token{0} == '"' || $token{0} == "'") && $token{strlen($token)-1} == $token{0})) $token = '"'.$token.'"'; diff --git a/libs/Smarty_Compiler.class.php b/libs/Smarty_Compiler.class.php index 59f1f8af..54fa23df 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -987,7 +987,7 @@ class Smarty_Compiler extends Smarty { '$', '#', or '%') and not enclosed in single or double quotes we single-quote it. */ else if ($quote && !in_array($token{0}, $var_delims) && - !(($token{0} == '"' || $token[0] == "'") && + !(($token{0} == '"' || $token{0} == "'") && $token{strlen($token)-1} == $token{0})) $token = '"'.$token.'"';