In a follow up to a previous entry on his blog today, Derick Rethans has information posted about the release of a new input filtering package for PECL.
A few weeks ago I already wrote about the Input Filter extension. After a quick round of review I now implemented the extension as a PECL package so that it can get some more testing. After this testing round the plan is to put this extension by default in the PHP distributions.
The extension only has a few functions in its API, but they can more than handle anything tossed at it. The filter_data function will do most of the work, taking in the value, a filter type, options, and an optional characterset. There are three different types of filtering happening here - logical, sanitizing, and callback filtering, each with their own list of validation types.
I, for one, can't wait for it to be as easy as this to filter out some of the e-vil things coming my script's way...




