From ce428db89f1f3ac5ff1b9b519522aa4701c9c4ad Mon Sep 17 00:00:00 2001 From: xue <> Date: Sat, 31 Mar 2007 13:40:02 +0000 Subject: Fixed #566 --- framework/Web/UI/TTemplateManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/Web') diff --git a/framework/Web/UI/TTemplateManager.php b/framework/Web/UI/TTemplateManager.php index a68b4c51..d71662ca 100644 --- a/framework/Web/UI/TTemplateManager.php +++ b/framework/Web/UI/TTemplateManager.php @@ -655,7 +655,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')")); } } -- cgit v1.2.3