Commit Graph

11 Commits

Author SHA1 Message Date
HDVinnie
93a8a8d375 PHP Style Change (Laravel Pint CI) 2023-08-31 09:22:36 +00:00
Roardom
15b31c777e fix: add type hints to form requests 2023-08-26 08:42:00 +00:00
Roardom
f885dd4715 fix: bad mime detection
Many users often remove the announce url from uploaded torrents (since other tracker codebases are known to log urls of uploaded torrents to breach user accounts on other sites). This unfortunately causes the mime detection to sometimes (not all the time) fail preventing the user from uploading. Now that we're validating by file extension, it should still prevent the case of users accidentally uploading an unrelated file which was the main issue to be solved.
2023-07-24 00:22:01 +00:00
Roardom
61122c0d84 fix: validate nfo and torrent file extensions on upload 2023-07-22 05:39:43 +00:00
Roardom
9c69ff8b37 fix: torrent mimetype validation
If a user has never installed a BitTorrent client, then their OS would have never registered the `application/x-bittorrent` mimetype. Upon upload, the browser does not sent this mimetype as a result, which causes the validation to fail.
2023-07-15 09:45:10 +00:00
HDVinnie
1ea94f637b Merge pull request #2881 from Roardom/fix-meta-id-requirement
(Fix) Validate meta ids for the selected category
2023-07-10 12:09:52 -04:00
Roardom
0101b1d4cd fix: validate meta ids for the selected category 2023-07-10 09:15:32 +00:00
Roardom
741adef615 add: moderation scopes 2023-07-10 04:20:40 +00:00
Roardom
f493a04d55 fix: imdb should not be required to be an integer
Often, imdb ids are entered with prepended zeros which fail the validation.
2023-07-08 05:16:58 +00:00
HDVinnie
e442d738e6 PHP Style Change (Laravel Pint CI) 2023-07-07 03:30:38 +00:00
Roardom
0000838d8b refactor: cruddy torrents
Separate torrents into cruddy route names. Route model binding isn't possible due to the global scope on unapproved torrents. Use form requests. Simplify the controller flow where possible.
2023-07-07 03:18:13 +00:00