From 9b918c5b7fa3aac6e077f15dc06c1d8d7185f5aa Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 16 Jun 2006 11:14:31 +0000 Subject: Fixed an issued about ending static string escaping. --- 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 c9cf564d..a68e8762 100644 --- a/framework/Web/UI/TTemplateManager.php +++ b/framework/Web/UI/TTemplateManager.php @@ -799,7 +799,7 @@ class TTemplate extends TApplicationComponent implements ITemplate } $length=strlen($value); if($length>$textStart) - $expr.=".'".substr($value,$textStart,$length-$textStart)."'"; + $expr.=".'".strtr(substr($value,$textStart,$length-$textStart),array("'"=>"\\'","\\"=>"\\\\"))."'"; if($isDataBind) return array(self::CONFIG_DATABIND,ltrim($expr,'.')); else -- cgit v1.2.3