jlongino has asked for the wisdom of the Perl Monks concerning the following question:
I have a Web application that has been in production for 3 years now but have a cosmetic enduser request that I haven't gotten around to. The application allows the enduser to submit a calendar event via mail but, by default, sends the CGI parameters escaped. The endusers want a unescaped layout. Here are the relevant code snippets:
What I'm hoping for is a simple method similar to save_parameters() to handle this. The more I think about it, perhaps it would be better to write a snippet that manually includes only the parms I want (so that spoofed parms don't appear as well). What do you think? TIA.# ... open (MAIL, "|/usr/lib/sendmail -oi -t") or die "Can't fork sendmail: +$!"; print MAIL <<EOF; From: requestor@from.foo.net To: Receiver@to.foo.net Subject: Requested Calendar Event EOF CGI::save_parameters(*MAIL); close (MAIL) or die "can't close sendmail: $!"; # ...
--Jim
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Mailing unescaped CGI parameters
by merlyn (Sage) on Apr 11, 2002 at 18:09 UTC | |
|
Re: Mailing unescaped CGI parameters
by perlplexer (Hermit) on Apr 11, 2002 at 18:14 UTC | |
|
Re: Mailing unescaped CGI parameters
by erikharrison (Deacon) on Apr 11, 2002 at 18:19 UTC | |
|
Re: Mailing unescaped CGI parameters
by jlongino (Parson) on Apr 11, 2002 at 20:25 UTC |