summaryrefslogtreecommitdiffstats
path: root/lib/private/AppFramework
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2023-03-21 09:11:00 +0100
committerSimon L. (Rebase PR Action) <szaimen@e.mail.de>2023-04-17 16:06:37 +0000
commita06898a2d0c4403494747dbb4094dc21b6524348 (patch)
treefca15a2408901137f84b930ad134a45c380e364e /lib/private/AppFramework
parentb9520661406bc514ac16f11aeb85b1980d62f581 (diff)
downloadnextcloud-server-a06898a2d0c4403494747dbb4094dc21b6524348.tar.gz
nextcloud-server-a06898a2d0c4403494747dbb4094dc21b6524348.zip
fix(security)!: Use consistent HTTP status for strict cookie checks
Before: 503/412 Now: 412 + json body explaining the error Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/AppFramework')
-rw-r--r--lib/private/AppFramework/Middleware/Security/Exceptions/StrictCookieMissingException.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/AppFramework/Middleware/Security/Exceptions/StrictCookieMissingException.php b/lib/private/AppFramework/Middleware/Security/Exceptions/StrictCookieMissingException.php
index eca03896953..28092331a22 100644
--- a/lib/private/AppFramework/Middleware/Security/Exceptions/StrictCookieMissingException.php
+++ b/lib/private/AppFramework/Middleware/Security/Exceptions/StrictCookieMissingException.php
@@ -1,4 +1,7 @@
<?php
+
+declare(strict_types=1);
+
/**
* @copyright Copyright (c) 2016 Lukas Reschke <lukas@statuscode.ch>
*