Quellcode durchsuchen

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

Tom Klingenberg vor 14 Jahren
Ursprung
Commit
db37bbb189
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/Symfony/Component/HttpFoundation/RedirectResponse.php

+ 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)
         );