diff --git a/Smarty_Compiler.class.php b/Smarty_Compiler.class.php index f208b97f..d842df9a 100644 --- a/Smarty_Compiler.class.php +++ b/Smarty_Compiler.class.php @@ -669,7 +669,7 @@ class Smarty_Compiler extends Smarty { else if ($quote && !in_array($token{0}, $var_delims) && !(($token{0} == '"' || $token[0] == "'") && $token{strlen($token)-1} == $token{0})) - $token = "'".$token."'"; + $token = '"'.$token.'"'; $attrs[$attr_name] = $token; $state = 0; diff --git a/libs/Smarty_Compiler.class.php b/libs/Smarty_Compiler.class.php index f208b97f..d842df9a 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -669,7 +669,7 @@ class Smarty_Compiler extends Smarty { else if ($quote && !in_array($token{0}, $var_delims) && !(($token{0} == '"' || $token[0] == "'") && $token{strlen($token)-1} == $token{0})) - $token = "'".$token."'"; + $token = '"'.$token.'"'; $attrs[$attr_name] = $token; $state = 0;