Add check for the thumbnail in base64 (requests inter pods)

pull/10/head
Chocobozzz 2016-05-16 19:55:32 +02:00
parent a996fc4abe
commit 479f229198
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,8 @@ function eachIsRemoteVideosAddValid (values) {
val.duration >= 0 &&
val.duration < constants.MAXIMUM_VIDEO_DURATION &&
validator.isLength(val.author, 1, constants.MAXIMUM_AUTHOR_LENGTH) &&
validator.isBase64(val.thumbnailBase64) &&
validator.isByteLength(val.thumbnailBase64, { min: 0, max: 20000 }) &&
validator.isDate(val.createdDate)
})
}