in reply to Untainting backtick command data

Is $dbname safe? Is your PATH safe? What's the exact error message? Did you try "use diagnostics"?

Replies are listed 'Best First'.
Re: Re: Untainting backtick command data
by OpelSpeed (Initiate) on May 18, 2004 at 13:07 UTC
    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??

      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