summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorxue <>2006-02-27 03:03:16 +0000
committerxue <>2006-02-27 03:03:16 +0000
commite2f0a9123ebc40d1d4dfa056fb8f1b94911d616b (patch)
treefb06958cb7110fa8a6f50ee069350f8bc8d2a717 /framework
parent7956ad5e7ed68e4d35ee021986830fe06a7b071e (diff)
Error displayed by TBrowserLogRoute is HTML-encoded now.
Diffstat (limited to 'framework')
-rw-r--r--framework/Log/TLogRouter.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/framework/Log/TLogRouter.php b/framework/Log/TLogRouter.php
index 177d1894..3b8bef94 100644
--- a/framework/Log/TLogRouter.php
+++ b/framework/Log/TLogRouter.php
@@ -623,6 +623,7 @@ EOD;
$delta = sprintf('%0.6f', $info['delta']);
$color = $this->getColorLevel($log[1]);
$msg = preg_replace('/\(line[^\)]+\)$/','',$log[0]); //remove line number info
+ $msg = THttpUtility::htmlEncode($msg);
$string = <<<EOD
<tr style="background-color: {$bgcolor};">
<td style="border:1px solid silver;background-color: $color;">&nbsp;</td>