Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
escaped_hn
· 12y ago · 0 comments
It probably sents an email with the blank filled in without validation.
Comments
[–]
milesokeefe
12y ago
Nope, pretty basic server side validation in PHP:
filter_var($_POST['email'], FILTER_SANITIZE_EMAIL)
[–]
deeebug
12y ago
"FILTER_SANITIZE_EMAIL" doesn't do any validation. That only filters.
[–]
milesokeefe
12y ago
Which is what I want. It prevents attacks but allows me to see the odd non-email stuff people submit.
[–]
_RPM
12y ago
FILTER_VALIDATE_EMAIL