Browse Source

merged branch stloyd/patch-3 (PR #2011)

Commits
-------

020fa51 [RedirectResponse] Added missing `doctype` and `title` tag

Discussion
----------

[RedirectResponse] Added missing `doctype` and `title` tag
Fabien Potencier 13 years ago
parent
commit
07bdb8ac84
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/Symfony/Component/HttpFoundation/RedirectResponse.php

+ 4 - 1
src/Symfony/Component/HttpFoundation/RedirectResponse.php

@@ -37,10 +37,13 @@ class RedirectResponse extends Response
         }
         }
 
 
         parent::__construct(
         parent::__construct(
-            sprintf('<html>
+            sprintf('<!DOCTYPE html>
+<html>
     <head>
     <head>
         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
         <meta http-equiv="refresh" content="1;url=%1$s" />
         <meta http-equiv="refresh" content="1;url=%1$s" />
+
+        <title>Redirecting to %1$s</title>
     </head>
     </head>
     <body>
     <body>
         Redirecting to <a href="%1$s">%1$s</a>.
         Redirecting to <a href="%1$s">%1$s</a>.