mirror of
https://github.com/flarum/framework.git
synced 2024-11-24 14:37:23 +08:00
Fix redirect helper.
This commit is contained in:
parent
79480242a7
commit
2ba7a2044b
|
@ -44,6 +44,9 @@ abstract class Action
|
|||
</body>
|
||||
</html>', htmlspecialchars($url, ENT_QUOTES, 'UTF-8'));
|
||||
|
||||
return new Response($content, 302, ['location' => $url]);
|
||||
$response = new Response('php://memory', 302, ['location' => $url]);
|
||||
$response->getBody()->write($content);
|
||||
|
||||
return $response;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user