mirror of
https://github.com/flarum/core.git
synced 2025-07-26 03:01:22 +02:00
Fix redirect helper.
This commit is contained in:
@@ -44,6 +44,9 @@ abstract class Action
|
|||||||
</body>
|
</body>
|
||||||
</html>', htmlspecialchars($url, ENT_QUOTES, 'UTF-8'));
|
</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