mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 09:49:20 +02:00
Stricter import types
Avoid forgetting to sanitize a field by specifying the sanitized object type
This commit is contained in:
parent
02596be702
commit
009d7b39ac
14 changed files with 147 additions and 107 deletions
|
@ -414,6 +414,9 @@ const CONSTRAINTS_FIELDS = {
|
|||
PARTIAL_UPLOAD_SIZE: { max: 50 * 1024 * 1024 * 1024 }, // 50GB
|
||||
URL: { min: 3, max: 2000 } // Length
|
||||
},
|
||||
VIDEO_SOURCE: {
|
||||
FILENAME: { min: 1, max: 1000 } // Length
|
||||
},
|
||||
VIDEO_PLAYLISTS: {
|
||||
NAME: { min: 1, max: 120 }, // Length
|
||||
DESCRIPTION: { min: 3, max: 1000 }, // Length
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue