summaryrefslogtreecommitdiff
path: root/framework/Web/UI
diff options
context:
space:
mode:
authorxue <>2006-06-16 11:14:31 +0000
committerxue <>2006-06-16 11:14:31 +0000
commit9b918c5b7fa3aac6e077f15dc06c1d8d7185f5aa (patch)
treec50c653905d7ed9ed9e5713d3e37b83ca55d3252 /framework/Web/UI
parent24a5d124d1c004892c36e969b7f03fd5d4fde9e9 (diff)
Fixed an issued about ending static string escaping.
Diffstat (limited to 'framework/Web/UI')
-rw-r--r--framework/Web/UI/TTemplateManager.php2
1 files changed, 1 insertions, 1 deletions
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