Re: [nyphp-talk] preg_match and pattern matching

2008-12-12 Thread Brian Dailey
Instead of re-inventing the wheel, I suggest taking a look at some of the code written by others. This is a common problem to any web developer. One example would be CakePHP's Sanitize class: http://api.cakephp.org/1.2/sanitize_8php-source.html Chris Shiflett's blog has a lot of resources on PH

Re: [nyphp-talk] preg_match and pattern matching

2008-11-22 Thread csnyder
On Sat, Nov 22, 2008 at 9:24 AM, <[EMAIL PROTECTED]> wrote: > Hello and Greetings, > > I have just been reviewing a script that says its a PHP firewall. It > is using an array with 250 elements that are all basically subsets of > code and injections that hackers use to break into sites. I could >

[nyphp-talk] preg_match and pattern matching

2008-11-22 Thread mikesz
Hello and Greetings, I have just been reviewing a script that says its a PHP firewall. It is using an array with 250 elements that are all basically subsets of code and injections that hackers use to break into sites. I could easily take this array and create a preg_match test but was wondering at