diff options
author | provokateurin <kate@provokateurin.de> | 2024-12-16 16:20:48 +0100 |
---|---|---|
committer | provokateurin <kate@provokateurin.de> | 2025-01-07 15:45:30 +0100 |
commit | 7db694f53478e7b619fdbd2a4318f4681afbf5dd (patch) | |
tree | 031cd610610a18523fd90cd18127964a53cddb5d /lib/public/AppFramework/Http/TooManyRequestsResponse.php | |
parent | 960168fd963bae12a347bb7c3b77108c21b4fb0d (diff) | |
download | nextcloud-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/TooManyRequestsResponse.php')
-rw-r--r-- | lib/public/AppFramework/Http/TooManyRequestsResponse.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/public/AppFramework/Http/TooManyRequestsResponse.php b/lib/public/AppFramework/Http/TooManyRequestsResponse.php index b7b0a98c9e1..6b2ef5b1b90 100644 --- a/lib/public/AppFramework/Http/TooManyRequestsResponse.php +++ b/lib/public/AppFramework/Http/TooManyRequestsResponse.php @@ -13,9 +13,9 @@ use OCP\Template; /** * A generic 429 response showing an 404 error page as well to the end-user * @since 19.0.0 - * @template S of int + * @template S of Http::STATUS_* * @template H of array<string, mixed> - * @template-extends Response<int, array<string, mixed>> + * @template-extends Response<Http::STATUS_*, array<string, mixed>> */ class TooManyRequestsResponse extends Response { /** |