<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Thu, 23 May 2013 03:37:28 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Mike Lively's Blog: Improved PHPUnit Filters]]></title>
      <guid>http://www.phpdeveloper.org/news/11867</guid>
      <link>http://www.phpdeveloper.org/news/11867</link>
      <description><![CDATA[<p>
In <a href="http://www.ds-o.com/archives/78-Improved-PHPUnit-Filters.html">a recent post</a> to his blog <i>Mike Lively</i> looks at some improvements that he's worked up for the popular PHP unit testing software - <a href="http://phpunit.de">PHPUnit</a> - in regards to its filters.
</p>
<blockquote>
I have finally gotten some time to do some long awaited work on PHPUnit. The first on my agenda was a small improvement to filtering. This was related to <a href="http://www.ds-o.com/exit.php?url_id=237&entry_id=78">ticket #526</a>. Essentially I added the ability to do both white list and black list filtering. 
</blockquote>
<p>
Besides the Include methods you can add to the data set's filtering, you can also add in Exclude filters to remove the data you don't want in the set. They can also be combined to customize your data set to your heart's content.
</p>]]></description>
      <pubDate>Tue, 03 Feb 2009 09:32:26 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Security Tips #17 & #18 (When to Secure & File Uploads)]]></title>
      <guid>http://www.phpdeveloper.org/news/7521</guid>
      <link>http://www.phpdeveloper.org/news/7521</link>
      <description><![CDATA[<p>
The Zend Developer Zone continues their great series of security tips with two new posts - one talking about when to focus on security and the other about file uploads.
</p>
<p>
From the first, <a href="http://devzone.zend.com/node/view/id/1866">top 17</a>:
</p>
<blockquote>
Application security should not be a "when all else fails" situation. It's not something you can "put in later". As we've mentioned before, there is no single silver bullet to solve your application security issues. Security is something that should be rolling around in the back of your dead in the design phase, the coding phase, the testing phase, even after you've rolled your code into production.
</blockquote>
<p>
And, from <a href="http://devzone.zend.com/node/view/id/1867">tip #18</a>:
</p>
<blockquote>
When you allow users to upload files, your system may be at risk. Always restrict the file types that you allow. Don't rely on a blacklist approach. [...] Be careful with file uploads and make sure you protect them with a whitelist policy instead. Make sure that the file that has been uploaded is of the type that you want to allow.
</blockquote>]]></description>
      <pubDate>Wed, 28 Mar 2007 17:19:49 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[SitePoint PHP Blog: Zend_Filter Reviewed, Blacklist / Whitelist Filters]]></title>
      <guid>http://www.phpdeveloper.org/news/5061</guid>
      <link>http://www.phpdeveloper.org/news/5061</link>
      <description><![CDATA[The Zend Framework has definitely made a huge splash in the PHP community, and everyone is picking their piece of it to cover. In <a href="http://www.sitepoint.com/blogs/2006/03/28/zend_filter-reviewed/">this new post</a> from the SitePoint PHP blog, <i>Maarten Manders</i> highlights the Zend_Filter module.
<p>
<quote>
<i>
I like <a href="http://framework.zend.com/">Zend Framework</a>'s <a href="http://framework.zend.com/svn/framework/trunk/library/Zend/Filter.php">Zend_Filter</a> class. It's basically a set of methods for validating untrusted data. Although the two arguably most important features isEmail() and isUri() (the latter can be worked around with Zend_Uri) are still missing, the whole thing looks promising already.
</i>
</quote>
<p>
He <a href="http://www.sitepoint.com/blogs/2006/03/28/zend_filter-reviewed/">starts</a> with a few of his thoughts on the package ("Clean up the code of isHostname", "International support for isPhone") and some code to show how it can be implemented - filtering for use in a regular expression, validation of a string by a character whitelist as well as blacklisting, and using the Zend_Filter module for a more flexible isName.]]></description>
      <pubDate>Tue, 28 Mar 2006 18:20:37 -0600</pubDate>
    </item>
  </channel>
</rss>
