소스 검색

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

Tom Klingenberg 14 년 전
부모
커밋
db37bbb189
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)
         );