Page 1 of 1

the best of the regex

Posted: Fri May 06, 2005 11:19 am
by shiznatix
is there a regex to detect if a user has inputted characters unsafe for mysql querys? instead of just doing mysql_real_escape_string i want to return the user to the page saying invalid characters were detected blah blah blah.

oh by the way, amazing idea to add this form! will definatly come in handy!

Posted: Fri May 06, 2005 11:40 am
by patrikG
Not the best of coding, but they work

http://www.owasp.org/software/labs/phpfilters.html

Posted: Fri May 06, 2005 12:07 pm
by shiznatix
many thanks! now if you guys now a tutorial to teach someone regex who knows absolutly nothing about regex :oops: that would be a awesome link

Posted: Fri May 06, 2005 1:13 pm
by Skara

Posted: Sat May 07, 2005 6:06 pm
by Chris Corbyn
I'll make a nice tutorial.... gimme some time and I'll make it "dead simple" ;-)