I apologize for this post, but I was unable to find anything relevant using
Super Search,
The Perl CD Bookshelf, Version 2.0 (actually I have version 1.0, but O'Reilly didn't have a link to it that I could find) or perldoc CGI. (Sidenote, the isbn://xxxxxxxxxx is rerouting to Barnes & Noble sans return of the desired content)
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:
# ...
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: $!";
# ...
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.
--Jim
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.