aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/AppFramework/Http/StandaloneTemplateResponse.php
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2024-12-16 16:20:48 +0100
committerprovokateurin <kate@provokateurin.de>2025-01-07 15:45:30 +0100
commit7db694f53478e7b619fdbd2a4318f4681afbf5dd (patch)
tree031cd610610a18523fd90cd18127964a53cddb5d /lib/public/AppFramework/Http/StandaloneTemplateResponse.php
parent960168fd963bae12a347bb7c3b77108c21b4fb0d (diff)
downloadnextcloud-server-fix/http/template-valid-status-codes.tar.gz
nextcloud-server-fix/http/template-valid-status-codes.zip
fix(Http): Only allow valid HTTP status code values via templatefix/http/template-valid-status-codes
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'lib/public/AppFramework/Http/StandaloneTemplateResponse.php')
-rw-r--r--lib/public/AppFramework/Http/StandaloneTemplateResponse.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/public/AppFramework/Http/StandaloneTemplateResponse.php b/lib/public/AppFramework/Http/StandaloneTemplateResponse.php
index f729bd772fb..244a6b80f9f 100644
--- a/lib/public/AppFramework/Http/StandaloneTemplateResponse.php
+++ b/lib/public/AppFramework/Http/StandaloneTemplateResponse.php
@@ -7,6 +7,8 @@ declare(strict_types=1);
*/
namespace OCP\AppFramework\Http;
+use OCP\AppFramework\Http;
+
/**
* A template response that does not emit the loadAdditionalScripts events.
*
@@ -14,9 +16,9 @@ namespace OCP\AppFramework\Http;
* full nextcloud UI. Like the 2FA page, or the grant page in the login flow.
*
* @since 16.0.0
- * @template S of int
+ * @template S of Http::STATUS_*
* @template H of array<string, mixed>
- * @template-extends TemplateResponse<int, array<string, mixed>>
+ * @template-extends TemplateResponse<Http::STATUS_*, array<string, mixed>>
*/
class StandaloneTemplateResponse extends TemplateResponse {
}