MINOR Escaped characters in DebugView::writeHeader() debug page title using htmlentities()

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@77626 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2009-05-22 04:29:25 +00:00
parent 9385db7728
commit cdbc501c93

View File

@ -69,7 +69,7 @@ class DebugView {
* Render HTML header for development views
*/
public function writeHeader() {
echo '<!DOCTYPE html><html><head><title>'. $_SERVER['REQUEST_METHOD'] . ' ' .$_SERVER['REQUEST_URI'] .'</title>';
echo '<!DOCTYPE html><html><head><title>' . htmlentities($_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['REQUEST_URI']) . '</title>';
echo '<style type="text/css">';
echo 'body { background-color:#eee; margin:0; padding:0; font-family:Helvetica,Arial,sans-serif; }';
echo '.info { border-bottom:1px dotted #333; background-color:#ccdef3; margin:0; padding:6px 12px; }';