Y
Hacker News
new
|
ask
|
show
|
jobs
by
escaped_hn
4236 days ago
It probably sents an email with the blank filled in without validation.
1 comments
milesokeefe
4235 days ago
Nope, pretty basic server side validation in PHP:
filter_var($_POST['email'], FILTER_SANITIZE_EMAIL)
link
deeebug
4235 days ago
"FILTER_SANITIZE_EMAIL" doesn't do any validation. That only filters.
link
milesokeefe
4235 days ago
Which is what I want. It prevents attacks but allows me to see the odd non-email stuff people submit.
link
_RPM
4235 days ago
FILTER_VALIDATE_EMAIL
link