mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 10:42:46 +08:00
Fix redirect helper.
This commit is contained in:
parent
06b7a12404
commit
07ef273d1b
@ -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…
x
Reference in New Issue
Block a user