From 66bb33a7471fc582851f908cce04c4385a15d764 Mon Sep 17 00:00:00 2001 From: Jay Sizzla Date: Mon, 27 May 2024 19:50:55 +0200 Subject: [PATCH 1/2] Validate StoreTorrentRequest with correct DB length --- app/Http/Requests/StoreTorrentRequest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Requests/StoreTorrentRequest.php b/app/Http/Requests/StoreTorrentRequest.php index ebc24079c5..24a579794f 100644 --- a/app/Http/Requests/StoreTorrentRequest.php +++ b/app/Http/Requests/StoreTorrentRequest.php @@ -105,17 +105,17 @@ function (string $attribute, mixed $value, Closure $fail): void { ], 'description' => [ 'required', - 'max:2097152' + 'max:65535' ], 'mediainfo' => [ 'nullable', 'sometimes', - 'max:2097152', + 'max:65535', ], 'bdinfo' => [ 'nullable', 'sometimes', - 'max:2097152', + 'max:4294967295', ], 'category_id' => [ 'required', From 548a7e4d0bfbdf21150557d703cff2606c09c995 Mon Sep 17 00:00:00 2001 From: Jay <73784120+Obi-Wana@users.noreply.github.com> Date: Tue, 28 May 2024 08:16:54 +0200 Subject: [PATCH 2/2] Don't alter limit for BDInfo --- app/Http/Requests/StoreTorrentRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Requests/StoreTorrentRequest.php b/app/Http/Requests/StoreTorrentRequest.php index 24a579794f..d50bf300dd 100644 --- a/app/Http/Requests/StoreTorrentRequest.php +++ b/app/Http/Requests/StoreTorrentRequest.php @@ -115,7 +115,7 @@ function (string $attribute, mixed $value, Closure $fail): void { 'bdinfo' => [ 'nullable', 'sometimes', - 'max:4294967295', + 'max:2097152', ], 'category_id' => [ 'required',