One of the first rules of doing web development is to never trust user
input.
So, my question is how this may affect the usage of the mail() function
within PHP.
Obviously, one can (fairly easily) verify that what one is passing in
the TO parameter is a valid e-mail address.
What is recommended with respect to the subject & message parameters?
One potentially good function to run them through is strip_tags.
input.
So, my question is how this may affect the usage of the mail() function
within PHP.
Obviously, one can (fairly easily) verify that what one is passing in
the TO parameter is a valid e-mail address.
What is recommended with respect to the subject & message parameters?
One potentially good function to run them through is strip_tags.
Comment