aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/AppFramework/Http/NotFoundResponse.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/NotFoundResponse.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/NotFoundResponse.php')
-rw-r--r--lib/public/AppFramework/Http/NotFoundResponse.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/public/AppFramework/Http/NotFoundResponse.php b/lib/public/AppFramework/Http/NotFoundResponse.php
index 9ebefe69be1..137d1a26655 100644
--- a/lib/public/AppFramework/Http/NotFoundResponse.php
+++ b/lib/public/AppFramework/Http/NotFoundResponse.php
@@ -12,9 +12,9 @@ use OCP\AppFramework\Http;
/**
* A generic 404 response showing an 404 error page as well to the end-user
* @since 8.1.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 NotFoundResponse extends TemplateResponse {
/**