Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Making a regex case insensitive

by Win (Novice)
on Mar 06, 2007 at 18:26 UTC ( [id://603478]=note: print w/replies, xml ) Need Help??


in reply to Re: Making a regex case insensitive
in thread Making a regex case insensitive

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^3: Making a regex case insensitive
by imp (Priest) on Mar 06, 2007 at 18:34 UTC
    Instead of checking for bad tokens you should just use bound parameters whenever possible, and DBI's quote method when it isn't possible. You'll save yourself a lot of pain that way.

    Perfect paranoia is perfect awareness when it comes to preventing SQL injection attacks. Make sure you are binding or quoting everything that will touch the database. It's a semi common mistake to include $ENV{HTTP_REFERER} or $ENV{HTTP_USER_AGENT} in the sql unquoted.

    A reply falls below the community's threshold of quality. You may see it by logging in.
Re^3: Making a regex case insensitive
by davorg (Chancellor) on Mar 07, 2007 at 05:39 UTC
Re^3: Making a regex case insensitive
by Anonymous Monk on Mar 07, 2007 at 12:30 UTC
    I really must go back to those Perl books I have at home and read them again.
    I'll say.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://603478]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-19 17:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found