in reply to Re: Untainting backtick command data
in thread Untainting backtick command data

All other scalars are safe. They were successfully untainted. I guess it should be $ENV{PATH} then. I'm just a beginner so I didn't even bother with this one. How can I untaint it??
  • Comment on Re: Re: Untainting backtick command data

Replies are listed 'Best First'.
Re: Re: Re: Untainting backtick command data
by Tomte (Priest) on May 18, 2004 at 13:11 UTC

    1. by setting it to a fixed value

    $ENV{PATH}="/path/part/one:/path/part/two";

    2. by un-setting it and calling the external prog directly:

    $ENV{PATH}=''; `/usr/bin/rsh ...`;

    regards,
    tomte


    An intellectual is someone whose mind watches itself.
    -- Albert Camus

      It worked! Thanx a lot! Greetz, OpelSpeed