in reply to security trick that doesn't work: system() with arguments problem
You should be using MIME::Lite instead, or maybe Mail::Sender or one of the other mail sending modules. Especially having a "mail sending program" available under /var/www/cgi-bin seems highly problematic as that program will likely be accessible from the outside by crafting a HTTP access.
In your invocation, you have
'-t','$email_to',
... but single quotes do not interpolate. You want to leave out the single quotes. But see above for the use of MIME::Lite instead.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: security trick that doesn't work: system() with arguments problem
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 | |
|
Re^2: security trick that doesn't work: system() with arguments problem
by bulk88 (Priest) on May 02, 2012 at 16:43 UTC |