+ Free 30-min call · NDA on request · No obligation +
+ + + + + ++ Prefer to talk now? Call + +91 95614 17403 + or + WhatsApp us. +
+| Source | ${escapeHtml(sourceLabel)} |
| Name | ${escapeHtml(data.name)} |
| ${escapeHtml(data.email)} | |
| Phone | ${escapeHtml(data.phone || 'Not provided')} |
| Subject | ${escapeHtml(subjectLabels[data.subject] ?? data.subject)} |
| Project | ${escapeHtml(data.projectType)} |
| Message | ${escapeHtml(data.message)} |
Submitted at: ${new Date().toISOString()}
@@ -392,6 +420,19 @@ export const POST: APIRoute = async ({ request, clientAddress }) => { ); } + // Normalize the lead source. Free-text is rejected to keep the analytics + // taxonomy clean and prevent log-injection style abuse. + const rawSource = body.source ? String(body.source).trim().toLowerCase() : ''; + const source = VALID_SOURCES.includes(rawSource) ? rawSource : 'contact-page'; + + // Project type is free-text from a controlled