in reply to File::Spec and taint

Now I am using CGI::Safe so I thought the path should be untainted.

$fp is tainted

Replies are listed 'Best First'.
Re^2: File::Spec and taint
by SilasTheMonk (Chaplain) on Aug 26, 2008 at 21:44 UTC
    My sincerest apologies to the community but I have found the solution. I did it by debugging and testing for the origin of the taint with Scalar::Util::taint.

    I had forgotten that the input variable $class was tainted because it came from a drop-down menu rather than a text box. In fact before posting I did a search and found a perl Monks node exactly to this effect. I failed to see the connection at the time. Sadly I can no longer find that node. The replies were helpful and broadened my knowledge in other ways.