Re: safely using input for mail

From: Date: Mon, 13 Sep 2004 04:47:57 +0000
Subject: Re: safely using input for mail
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-196473@lists.php.net to get a copy of this message
Justin French wrote:
On 13/09/2004, at 12:45 PM, John Holmes wrote:
str_replace(array("\r","\n",'',$text) Is one way to do it.
Typo John: str_replace(array("\r","\n"),'',$text);
Yeah, that's why I said it was "one way" to do it and not the "correct way" to do it... come on people!! ;) Anyway, I uhmm... did that on purpose. Yeah, it was a test to see if David was paying attention. Since he caught it, also, I guess my, uh, test worked. Yeah... that's the ticket! -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.general (#196473) next »