Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Perl
Perl Misc
Use of CGI.pm filehandle with File::Copy::copy in taint mode
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="raw.com, post: 4815935"] I have a simple upload script that uses the (Fh) filehandles returned by CGI::upload() in a call to File::Copy::copy(). Works fine without taint mode turned on. Under -t I get: Insecure dependency in open while running with -T switch at C:/Perl/lib/File/Copy.pm line 133 That line is, indeed, the call to open(). Untainting my filehandle (using IO::Handle::untaint(*{$fh}{IO}), which returns 0, indicating "success") does not do the trick. In the debugger, using this as a taint-check: sub is_tainted { return ! eval { eval("#" . substr(join("", @_), 0, 0)); 1 }; } I see that my filehandles remain tainted even after the call to IO::Handle:untaint(). Other postings I've read suggest that these filehandles do not need to be untainted. Any suggestions? Cheers, Richard [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Perl
Perl Misc
Use of CGI.pm filehandle with File::Copy::copy in taint mode
Top