Skip to content

Commit

Permalink
Merge pull request #3342 from Roardom/decrease-torrent-form-sizes
Browse files Browse the repository at this point in the history
(Fix) More reasonable torrent form max sizes
  • Loading branch information
HDVinnie committed Jan 2, 2024
2 parents 5d2f823 + 00be899 commit 800a847
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions app/Http/Requests/StoreTorrentRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,17 @@ function (string $attribute, mixed $value, Closure $fail): void {
],
'description' => [
'required',
'max:4294967296'
'max:2097152'
],
'mediainfo' => [
'nullable',
'sometimes',
'max:4294967296',
'max:2097152',
],
'bdinfo' => [
'nullable',
'sometimes',
'max:4294967296',
'max:2097152',
],
'category_id' => [
'required',
Expand Down
6 changes: 3 additions & 3 deletions app/Http/Requests/UpdateTorrentRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,17 @@ public function rules(Request $request): array
],
'description' => [
'required',
'max:4294967296'
'max:2097152'
],
'mediainfo' => [
'nullable',
'sometimes',
'max:4294967296',
'max:2097152',
],
'bdinfo' => [
'nullable',
'sometimes',
'max:4294967296',
'max:2097152',
],
'category_id' => [
'required',
Expand Down
6 changes: 3 additions & 3 deletions tests/Unit/Http/Requests/StoreTorrentRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@
],
'description' => [
'required',
'max:4294967296',
'max:2097152',
],
'mediainfo' => [
'nullable',
'sometimes',
'max:4294967296',
'max:2097152',
],
'bdinfo' => [
'nullable',
'sometimes',
'max:4294967296',
'max:2097152',
],
'category_id' => [
'required',
Expand Down
6 changes: 3 additions & 3 deletions tests/Unit/Http/Requests/UpdateTorrentRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@
],
'description' => [
'required',
'max:4294967296',
'max:2097152',
],
'mediainfo' => [
'nullable',
'sometimes',
'max:4294967296',
'max:2097152',
],
'bdinfo' => [
'nullable',
'sometimes',
'max:4294967296',
'max:2097152',
],
'category_id' => [
'required',
Expand Down

0 comments on commit 800a847

Please sign in to comment.