chore: fix typo in `SameSiteCookieMiddleware`

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
pull/47650/head
Ferdinand Thiessen 2 years ago
parent 92f3f7e2d2
commit deeccd12a3
No known key found for this signature in database
GPG Key ID: 45FAE7268762B400
  1. 8
      lib/private/AppFramework/Middleware/Security/SameSiteCookieMiddleware.php

@ -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…
Cancel
Save