mirror of
https://github.com/nextcloud/server.git
synced 2026-04-05 17:16:55 -04:00
chore: fix typo in SameSiteCookieMiddleware
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
parent
92f3f7e2d2
commit
deeccd12a3
1 changed files with 4 additions and 4 deletions
|
|
@ -46,13 +46,13 @@ class SameSiteCookieMiddleware extends Middleware {
|
|||
|
||||
public function afterException($controller, $methodName, \Exception $exception) {
|
||||
if ($exception instanceof LaxSameSiteCookieFailedException) {
|
||||
$respone = new Response();
|
||||
$respone->setStatus(Http::STATUS_FOUND);
|
||||
$respone->addHeader('Location', $this->request->getRequestUri());
|
||||
$response = new Response();
|
||||
$response->setStatus(Http::STATUS_FOUND);
|
||||
$response->addHeader('Location', $this->request->getRequestUri());
|
||||
|
||||
$this->setSameSiteCookie();
|
||||
|
||||
return $respone;
|
||||
return $response;
|
||||
}
|
||||
|
||||
throw $exception;
|
||||
|
|
|
|||
Loading…
Reference in a new issue