Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Re: $TAINTED in latest v2.87

by zentara (Archbishop)
on Oct 09, 2002 at 15:28 UTC ( #203959=note: print w/replies, xml ) Need Help??

in reply to Re: $TAINTED in latest v2.87
in thread $TAINTED in latest v2.87

You are right. I went back and put v2.87 back in and added
a line:

$TAINTED = substr($ENV{REQUEST_METHOD}.'',0,0);

and it works fine now.  There must be a better idiom for that added line ?
  • Comment on Re: Re: $TAINTED in latest v2.87

Replies are listed 'Best First'.
Re^3: $TAINTED in latest v2.87
by particle (Vicar) on Oct 09, 2002 at 15:45 UTC

    how about

    $ENV{REQUEST_METHOD} ||= '';

    but it will replace a false value, such as the number 0. in perl6, that's better written as:

    $ENV{REQUEST_METHOD} //= '';

    which will only default undefined values

    ~Particle *accelerates*

Re^3: $TAINTED in latest v2.87
by Aristotle (Chancellor) on Oct 09, 2002 at 21:44 UTC
    defined or $_ = '' for $ENV{REQUEST_METHOD};

    Makeshifts last the longest.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2022-11-30 10:57 GMT
Find Nodes?
    Voting Booth?