That's still trivial to bypass: q{us' or 'x' == 'x}. Better is to use placeholders and not let the SQL parser see user input to begin with.
Update: Or worse if the database in question allows compound statements, q{us'; drop table unpw; --}
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re: Secure Regular Expression Check
by Fletch
in thread Secure Regular Expression Check
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |