Skip to content

Commit db415db

Browse files
committed
[HttpFoundation] tweaked previous merge
1 parent c41da9d commit db415db

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/Symfony/Component/HttpFoundation/RedirectResponse.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,15 @@ public function __construct($url, $status = 302)
3333
}
3434

3535
parent::__construct(
36-
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)),
36+
sprintf('<html>
37+
<head>
38+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
39+
<meta http-equiv="refresh" content="1;url=%1$s" />
40+
</head>
41+
<body>
42+
Redirecting to <a href="%1$s">%1$s</a>.
43+
</body>
44+
</html>', htmlspecialchars($url, ENT_QUOTES, 'UTF-8')),
3745
$status,
3846
array('Location' => $url)
3947
);

0 commit comments

Comments
 (0)