RE: [Q] mail() & security

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Eric Gorr <mailto:mailist@xxxxxxxxxxxx>
    on Monday, April 04, 2005 2:01 PM said:

> The only concern I had was how to process the body text. Any
> recommendations?
> 
> One useful function would appear to be strip_tags, so no one could
> embed annoying or destructive HTML, etc. which I may accidentally
> cause my e-mail application to render.
> 
> Any other suggestions?

Maybe:

www.php.net/addslashes
www.php.net/htmlentities

Whatever you do don't strip out line breaks. I find it really annoying
when I neatly format (read "use paragraphs") a message in a contact form
just to find out that all those pretty line breaks are removed, turning
my nice message into a difficult to read blob.



Chris.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux