aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/AppFramework/Http/JSONResponse.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/JSONResponse.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/JSONResponse.php')
-rw-r--r--lib/public/AppFramework/Http/JSONResponse.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/public/AppFramework/Http/JSONResponse.php b/lib/public/AppFramework/Http/JSONResponse.php
index 1d2564afab0..efcf79d5e87 100644
--- a/lib/public/AppFramework/Http/JSONResponse.php
+++ b/lib/public/AppFramework/Http/JSONResponse.php
@@ -12,10 +12,10 @@ use OCP\AppFramework\Http;
/**
* A renderer for JSON calls
* @since 6.0.0
- * @template S of int
+ * @template S of Http::STATUS_*
* @template-covariant T of null|string|int|float|bool|array|\stdClass|\JsonSerializable
* @template H of array<string, mixed>
- * @template-extends Response<int, array<string, mixed>>
+ * @template-extends Response<Http::STATUS_*, array<string, mixed>>
*/
class JSONResponse extends Response {
/**