<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated on Sun, 21 Mar 2010 10:22:22 -0500 -->
<rss version="2.0">
  <channel>    <title>Codeassembly - How to sanitize your php input</title>
    <link>http://www.codeassembly.com/feed/comments/36</link>
    <description>CodeAssembly - Simplicity is prerequisite for reliability - Comments</description>
    <language>en-us</language>
    <managingEditor>contact@codeassembly.com</managingEditor>
    <webMaster>contact@codeassembly.com</webMaster>
    <generator>RSS Feed Generator</generator>
    <item>
      <title>mitch</title>
      <description>Is there a reason, or is it just preference, that you passed a ref to $_GET to the sanitize function? I would probably have just returned a new array. Does it matter? Is one way more efficient or better, or not?</description>
      <link>http://codeassembly.com/How-to-sanitize-your-php-input/#264</link>
      <pubDate>2009-09-10 15:29:10</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/How-to-sanitize-your-php-input/#264</guid>
    </item>
    <item>
      <title>John Smith</title>
      <description>What would be the best way to add sanitisation for email addresses to this code?</description>
      <link>http://codeassembly.com/How-to-sanitize-your-php-input/#87</link>
      <pubDate>2008-03-08 14:16:53</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/How-to-sanitize-your-php-input/#87</guid>
    </item>
    <item>
      <title>Phil</title>
      <description>It would be nice to add a check for valid email address something like...

<pre>
<code>
function validate_email_address ($address)
{
	// check address format
	$address = stripslashes($address);
	if (!ereg ("^.+@.+\\\\..+$", $address) || empty ($address)) return FALSE;
	if (eregi ("\\r", $address) || eregi ("\\n", $address)) return FALSE;

	// safe
	return TRUE;
}
</code>
</pre>


Regards,
Phil
</description>
      <link>http://codeassembly.com/How-to-sanitize-your-php-input/#85</link>
      <pubDate>2008-03-21 14:02:43</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/How-to-sanitize-your-php-input/#85</guid>
    </item>
    <item>
      <title>John Smith</title>
      <description>What would be the best way to add sanitisation for email addresses to this code?</description>
      <link>http://codeassembly.com/How-to-sanitize-your-php-input/#84</link>
      <pubDate>2008-03-08 14:05:39</pubDate>
      <guid isPermaLink="true">http://codeassembly.com/How-to-sanitize-your-php-input/#84</guid>
    </item>
  </channel></rss>