Procházet zdrojové kódy

HTTP 1.1 / RFC 2616 - Make Redirect response HTTP body having a HTML body.

Tom Klingenberg před 14 roky
rodič
revize
db37bbb189

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

@@ -33,7 +33,7 @@ class RedirectResponse extends Response
         }
 
         parent::__construct(
-            sprintf('<html><head><meta http-equiv="refresh" content="1;url=%s"/></head></html>', htmlspecialchars($url, ENT_QUOTES)),
+            sprintf('<html><head><meta http-equiv="refresh" content="1;url=%s"/></head><body>Redirect to <a href="%1$s">%1$s</a>.</body></html>', htmlspecialchars($url, ENT_QUOTES)),
             $status,
             array('Location' => $url)
         );