diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-01-09 14:15:36 +1100 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-01-09 14:15:36 +1100 |
| commit | 05ab38d355e347d72a2ff82de3ef978939a63326 (patch) | |
| tree | 391f2c1834dd8016b263c3c09c3f31d9a6fd2609 /inc/template.php | |
| parent | 118d50a76e382839d5905b08f9b924d8b37cdd25 (diff) | |
escape HTML in debug data
Diffstat (limited to 'inc/template.php')
| -rw-r--r-- | inc/template.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/template.php b/inc/template.php index 2a8366c0..537016ac 100644 --- a/inc/template.php +++ b/inc/template.php @@ -28,7 +28,7 @@ unset($debug['start']);
}
- $options['body'] .= '<h3>Debug</h3><pre style="white-space: pre-wrap;font-size: 10px;">' . str_replace("\n", '<br/>', print_r($debug, true)) . '</pre>';
+ $options['body'] .= '<h3>Debug</h3><pre style="white-space: pre-wrap;font-size: 10px;">' . str_replace("\n", '<br/>', utf8tohtml(print_r($debug, true))) . '</pre>';
}
$loader->setPaths($config['dir']['template']);
|
