You are here: Re: Injection in mail() « All PHP « IT news, forums, messages
Re: Injection in mail()

Posted by Olivia Pahnanpohja on 11/24/06 09:32

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация