From 23a45a310902bc0314487002147cbe7b905ac466 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Tue, 27 Feb 2024 15:09:57 -0800 Subject: [PATCH] Updated validations for send payload. --- src/pages/api/send.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/api/send.ts b/src/pages/api/send.ts index 7a61464b..4f34a61d 100644 --- a/src/pages/api/send.ts +++ b/src/pages/api/send.ts @@ -56,10 +56,10 @@ const schema = { hostname: yup.string().matches(HOSTNAME_REGEX).max(100), ip: yup.string().matches(IP_REGEX), language: yup.string().max(35), - referrer: yup.string().max(500), + referrer: yup.string(), screen: yup.string().max(11), - title: yup.string().max(500), - url: yup.string().max(500), + title: yup.string(), + url: yup.string(), website: yup.string().uuid().required(), name: yup.string().max(50), })