mirror of
https://github.com/flarum/core.git
synced 2025-07-23 17:51:24 +02:00
Fix redirect helper.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user