cerad / ng2016

AYSO National Games 2016
MIT License
2 stars 0 forks source link

Invalid email slipped through #258

Open ahundiak opened 8 years ago

ahundiak commented 8 years ago

Only got this once: [2016-06-28 20:40:02] app.CRITICAL: UNCAUGHT PHP Exception Swift_RfcComplianceException: "Address in mailbox given [Bradley] does not comply with RFC 2822, 3.6.2." at /home/ahundiak/ws2016/ng2016/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php line 348 {"exception":"[object](Swift_RfcComplianceException%28code: 0%29: Address in mailbox given [Bradley] does not comply with RFC 2822, 3.6.2. at /home/ahundiak/ws2016/ng2016/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php:348)"}

Need to do a better job of validating emails? Pretty sure I am already using php email functions. Not a big deal but look into when have time.

ahundiak commented 8 years ago

Had a second case where someone just put their name in for an email. Kind of strange. But not going to fool with it for now. They were not a referee.