🛡️ Sentinel: Add input sanitization and validation to Contact form #17

Merged
google-labs-jules[bot] merged 1 commits from sentinel-contact-form-security-13396691456148792037 into main 2026-01-24 10:48:36 +00:00

1 Commits

Author SHA1 Message Date
google-labs-jules[bot]
6801682c2e Shield: Add input sanitization and length validation to Contact form
Added `sanitizeInput` utility to escape HTML characters.
Updated `Contact.tsx` to sanitize inputs before sending via `emailjs`.
Added max length validation for Name (100), Subject (200), and Message (5000).
Updated tests to cover sanitization and validation logic, including adding `cleanup()` to prevent test leakage.
2026-01-24 10:05:33 +00:00