1
0
Fork 0
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:
Chocobozzz 2024-02-13 09:32:17 +01:00 committed by Chocobozzz
parent 02596be702
commit 009d7b39ac
14 changed files with 147 additions and 107 deletions

View file

@ -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