good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Taint error in Printer moduleby ksublondie (Friar) |
on Aug 04, 2017 at 17:05 UTC ( [id://1196741]=perlquestion: print w/replies, xml ) | Need Help?? |
ksublondie has asked for the wisdom of the Perl Monks concerning the following question:
Hello all,
I'm migrating an intranet server from debian 6 to 9, and perl from 5.10 to 5.24. The web interface when prompted, prints to a dedicated printer. The only difference in the code on the new server is that I've had to set the print command because the default command in Printer is lpr, but for some reason, only lp works at the command line on the new server. I've reset my $ENV{PATH}, but I'm still receiving taint errors when it tries to print. Of course, everything works just fine from the command line. The error I'm receiving is and so you don't have to look it up, the code for Printer::Unix.pm is: The Printer.pm versions are identical: 0.98. Since I'm resetting ENV{PATH} and deleting all those others, what's going on here? Update: For grins, I've hard-coded the default command in Printer to lp from lpr and I'm still getting the same error. Update 2: The print command is working twice and failing on the third attempt. I've also reset ENV{PATH} for Printer.pm, along with Printer::Unix.pm and my code.
Back to
Seekers of Perl Wisdom
|
|