tercoz has asked for the wisdom of the Perl Monks concerning the following question:
Good day!
I want to securely send mail. So I invoke system next way:
system( '/var/www/cgi-bin/sendEmail', '-f', $email_from, '-t','$email_to', '-u','123', '-m','123', '-o','message-content-type=html' );
And of course it doesnt work.
But if I write this
system("/var/www/cgi-bin/sendEmail -f $email_from -t $email_to -u 123 +-m 123 -o message-content-type=html" );
Everything is okay.
What the problem may be?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: security trick that doesn't work: system() with arguments problem
by Corion (Patriarch) on May 02, 2012 at 08:52 UTC | |
by tercoz (Acolyte) on May 02, 2012 at 09:24 UTC | |
by Corion (Patriarch) on May 02, 2012 at 09:37 UTC | |
by tercoz (Acolyte) on May 02, 2012 at 10:50 UTC | |
by bulk88 (Priest) on May 02, 2012 at 16:43 UTC | |
Re: security trick that doesn't work: system() with arguments problem
by JavaFan (Canon) on May 02, 2012 at 09:33 UTC |
Back to
Seekers of Perl Wisdom