diff options
author | xue <> | 2007-03-31 13:43:49 +0000 |
---|---|---|
committer | xue <> | 2007-03-31 13:43:49 +0000 |
commit | 9d8f7d6cd2b0fd691c640473e524a2902c211e69 (patch) | |
tree | e4a73926dfb69037d6c01664191091952739a151 | |
parent | 42bccdcb813170f80e16aeed4958a95170bc0a03 (diff) |
Fixed localize string escaping issue.
-rw-r--r-- | framework/Web/UI/TTemplateManager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Web/UI/TTemplateManager.php b/framework/Web/UI/TTemplateManager.php index cfe4f4d4..6bc3ae59 100644 --- a/framework/Web/UI/TTemplateManager.php +++ b/framework/Web/UI/TTemplateManager.php @@ -620,7 +620,7 @@ class TTemplate extends TApplicationComponent implements ITemplate $tpl[$c++]=array($container,array(TCompositeLiteral::TYPE_EXPRESSION,"\$this->publishFilePath('$this->_contextPath/$literal')"));
else if($str[2]==='[')
{
- $literal=trim(substr($literal,0,strlen($literal)-1));
+ $literal=strtr(trim(substr($literal,0,strlen($literal)-1)),array("'"=>"\'","\\"=>"\\\\"));
$tpl[$c++]=array($container,array(TCompositeLiteral::TYPE_EXPRESSION,"Prado::localize('$literal')"));
}
}
|