diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-08-30 23:59:26 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-08-31 00:34:45 +0200 |
commit | deeccd12a30877e70950e93f706603fcb2abddb2 (patch) | |
tree | 5ca026c97c92de673c3bdc506fa205f4ab0782f4 /lib | |
parent | 92f3f7e2d28246c334bf6af751adc90d7d607349 (diff) | |
download | nextcloud-server-deeccd12a30877e70950e93f706603fcb2abddb2.tar.gz nextcloud-server-deeccd12a30877e70950e93f706603fcb2abddb2.zip |
chore: fix typo in `SameSiteCookieMiddleware`
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/AppFramework/Middleware/Security/SameSiteCookieMiddleware.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/AppFramework/Middleware/Security/SameSiteCookieMiddleware.php b/lib/private/AppFramework/Middleware/Security/SameSiteCookieMiddleware.php index e0bb96f132b..efe56e0b124 100644 --- a/lib/private/AppFramework/Middleware/Security/SameSiteCookieMiddleware.php +++ b/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; |