Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Merge branch 'main' into csv-export-formula-injection

Kiran K9444a0e67ef5
diff --cc apps/web/lib/actions/partners/update-partner-profile.ts
index e07af1a35c,d2fdfab384..71c59432ac
--- a/apps/web/lib/actions/partners/update-partner-profile.ts
+++ b/apps/web/lib/actions/partners/update-partner-profile.ts
@@@ -40,13 -38,10 +45,14 @@@ const updatePartnerProfileSchema =
email: z.email().optional(),
username: z.string().trim().toLowerCase().min(3).max(100).optional(),
image: uploadedImageSchema.nullish(),
- description: z.string().max(MAX_PARTNER_DESCRIPTION_LENGTH).nullish(),
+ description: z
+ .string()
+ .max(MAX_PARTNER_DESCRIPTION_LENGTH)
+ .nullish()
+ .transform(sanitizeFormulaInput),
profileType: z.enum(PartnerProfileType).optional(),
- companyName: z.string().nullish(),
+ companyName: z.string().nullish().transform(sanitizeFormulaInput),
+ syncIdentity: z.boolean().optional(),
})
.extend(PartnerProfileDetailsSchema.partial().shape)
.transform((data) => ({