[fix-meetingId-not-trim-error] - add validation

This commit is contained in:
GuiLeme 2023-01-26 12:05:42 -03:00
parent b229a4eb8a
commit e3efc2929f

View File

@ -123,6 +123,9 @@ class ApiController {
if(!(validationResponse == null)) {
invalid(validationResponse.getKey(), validationResponse.getValue())
return
} else if (ParamsUtil.sanitizeString(params.meetingID) != params.meetingID) {
invalid("idInvaid", "Meeting ID is invalid")
return
}
// Ensure unique TelVoice. Uniqueness is not guaranteed by paramsProcessorUtil.