diff options
author | xue <> | 2006-02-27 03:03:16 +0000 |
---|---|---|
committer | xue <> | 2006-02-27 03:03:16 +0000 |
commit | e2f0a9123ebc40d1d4dfa056fb8f1b94911d616b (patch) | |
tree | fb06958cb7110fa8a6f50ee069350f8bc8d2a717 /framework/Log/TLogRouter.php | |
parent | 7956ad5e7ed68e4d35ee021986830fe06a7b071e (diff) |
Error displayed by TBrowserLogRoute is HTML-encoded now.
Diffstat (limited to 'framework/Log/TLogRouter.php')
-rw-r--r-- | framework/Log/TLogRouter.php | 1 |
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;"> </td>
|