The stupid question is the question not asked | |
PerlMonks |
Taint mode trap from Perl 5.6 to 5.8by Andre_br (Pilgrim) |
on Sep 16, 2005 at 01:32 UTC ( [id://492489]=perlquestion: print w/replies, xml ) | Need Help?? |
Andre_br has asked for the wisdom of the Perl Monks concerning the following question:
Hello my friends,
My hostīs server was recently upgraded to Debian Sarge and, with it, to Perl 5.8 as well. I was very happy untill I realized all my email-generating scripts stopped working right away, with the following error each time I tried to send out an email: The script is basically a contact.cgi, with this code for the emailing:
Sure, itīs a taint mode issue, and I heard Perl got more rigid about taintedness from 5.6 to 5.8. But the strange thing is that none of the following steps seem to do any help: 1) Checking for taintedness of all the variables that go into the MIME::Lite->new() method. None of them is tainted. By the way, i used this code to check each one of them: 2) Checking for taintedness the $msg variable. Not tainted. 2) Setting the $ENV{'PATH'} from inside the script, with $ENV{'PATH'} = "/usr/local/bin:/usr/bin:/bin"; This one also doesnīt solve, but just changes the problem. The message becomes:
Any ideas? Iīm clueless here. Thanks
Andre_br
UPDATE2: I also checked my host's directories /usr/local/bin:/usr/bin:/bin and they are also not-world-writtable, as perlsecs recomends.
Back to
Seekers of Perl Wisdom
|
|