Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Help with split/Formmail.pl

Reply
Thread Tools

Help with split/Formmail.pl

 
 
Kurt
Guest
Posts: n/a
 
      04-01-2004
Hello,

I have software that allows direct submission of tech support requests.
The software connect directly to a formmail script. The problem is that
if the user types a '=' or a '&' anywhere in the message, the resulting
email is truncated at that spot.

It looks like the sub parse_form routine, which splits on '&', is
responsible. Then again, submitting the same text from a web form (to
the same formmail.pl) does not truncate the text.

I submit the text in the form:

&recipient=the_recipient
&subject=the_subject
&=the_actual_message

Again, the_actual_message is clipped at first occurence of a '&' or
'='.
Any ideas how to fix this?

Kurt



 
Reply With Quote
 
 
 
 
Gunnar Hjalmarsson
Guest
Posts: n/a
 
      04-01-2004
Kurt wrote:
> I have software that allows direct submission of tech support
> requests. The software connect directly to a formmail script. The
> problem is that if the user types a '=' or a '&' anywhere in the
> message, the resulting email is truncated at that spot.
>
> It looks like the sub parse_form routine, which splits on '&', is
> responsible.


Whichever formmail script it is you are using, it reasonably
presupposes that the incoming data is URI escaped, while the data you
are transferring from that other software is apparently not URI escaped.

> Any ideas how to fix this?


Escape the data before passing it to formmail. See the URI::Escape module.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Help Help Pentax S5i Help needed (Please) The Martian Digital Photography 14 06-20-2008 07:56 AM
HELP - HELP - HELP =?Utf-8?B?S2ltb24gSWZhbnRpZGlz?= ASP .Net 4 03-09-2006 12:46 PM
HELP WANTED HELP WANTED HELP WANTED Harvey ASP .Net 1 07-16-2004 01:12 PM
HELP WANTED HELP WANTED HELP WANTED Harvey ASP .Net 0 07-16-2004 10:00 AM
HELP! HELP! HELP! Opening Web Application Project Error =?Utf-8?B?dHJlbGxvdzQyMg==?= ASP .Net 0 02-20-2004 05:16 PM



Advertisments