Skip to content

Commit 344568c

Browse files
fix(sms): increase MAX_PHONE_LENGTH to support WhatsApp format
1 parent b7f7eba commit 344568c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/hooks/sms-webhook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const CLEANUP_INTERVAL_MS = 5 * 60 * 1000;
4545

4646
// Input validation constants
4747
const MAX_SMS_BODY_LENGTH = 1000;
48-
const MAX_PHONE_LENGTH = 20;
48+
const MAX_PHONE_LENGTH = 50; // WhatsApp format: whatsapp:+12345678901
4949

5050
// Security constants
5151
const MAX_BODY_SIZE = 50 * 1024; // 50KB max body

0 commit comments

Comments
 (0)