<?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>Fri, 24 May 2013 09:05:43 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Paul Jones' Blog: Sanitation with PHP filter_var()]]></title>
      <guid>http://www.phpdeveloper.org/news/7115</guid>
      <link>http://www.phpdeveloper.org/news/7115</link>
      <description><![CDATA[<p>
In working on a new filter for his <a href="http://www.solarphp.com">Solar framework</a>, <i>Paul Jones</i> <a href="http://paul-m-jones.com/blog/?p=240">discovered that</a> the "float" sanitizer in the new filter extension (PHP 5.2+) doesn't quite work as expected.
</p>
<blockquote>
I found a problem with the "float" sanitizing function in the 5.2.0 release, and thought others might want to be aware of it. In short, if you allow decimal places, the sanitizer allows any number of decimal points, not just one, and it returns an un-sanitary float.
</blockquote>
<p>
He <a href="http://paul-m-jones.com/blog/?p=240">includes the text</a> of the bug he submitted as an example of how the error might happen and, despite it being marked <a href="http://bugs.php.net/?id=40156">bogus</a>, <i>Paul still holds that things are still not working like they should.
</p>
<p>
You can also check out <a href="http://blog.thepimp.net/index.php/post/2007/01/17/why-it-works-as-you-expect-if-you-take-2-second-to-read-the-manual-or-RTFM">Pierre-Alain Joye's response</a> to this over on his blog.
</p>]]></description>
      <pubDate>Wed, 17 Jan 2007 15:22:00 -0600</pubDate>
    </item>
  </channel>
</rss>
