Re: Injection in mail()
- From: Olivia Pahnanpohja <olivia.pahnanpohja@xxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 24 Nov 2006 11:32:13 +0200
moosus wrote:
G'day Guys,
Do I need to worry about cleaning my $_POST[comments] field before using it
in a mail() function?
Cheers
moosus
Depends on how you use mail(). If you have 'clean' to- and subject-fields (and headers-field), it is relatively safe to use uncleaned body-field.
Ofcourse if you want to send valid emails, you should make sure that lines aren't too long and your character set is correctly setup and converted into the email etc.
- cheers,
Olivia
--
-- Olivia Pahnanpohja
Posmo Ltd
http://posmo.peoplegroup.fi
.
- References:
- Injection in mail()
- From: moosus
- Injection in mail()
- Prev by Date: Re: Injection in mail()
- Next by Date: Re: What is it Called?
- Previous by thread: Re: Injection in mail()
- Index(es):