mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Fixed bad default redirect code in ControllerResponseTrait::createRedirectResponse()
This commit is contained in:
parent
79b7c3c38f
commit
b9947f6984
|
|
@ -9,6 +9,7 @@
|
|||
1. [](#bugfix)
|
||||
* Fixed creating new `Flex User` when folder storage has been selected
|
||||
* Fixed some bugs in Flex root page methods
|
||||
* Fixed bad default redirect code in `ControllerResponseTrait::createRedirectResponse()`
|
||||
|
||||
# v1.7.0-rc.7
|
||||
## 03/05/2020
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ trait ControllerResponseTrait
|
|||
protected function createRedirectResponse(string $url, int $code = null): ResponseInterface
|
||||
{
|
||||
if (null === $code || $code < 301 || $code > 307) {
|
||||
$code = $this->getConfig()->get('system.pages.redirect_default_code', 302);
|
||||
$code = (int)$this->getConfig()->get('system.pages.redirect_default_code', 302);
|
||||
}
|
||||
|
||||
$accept = $this->getAccept(['application/json', 'text/html']);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user