470,647 Members | 1,061 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,647 developers. It's quick & easy.

Help with split/Formmail.pl

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

Jul 19 '05 #1
1 1850
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

Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by mcp6453 | last post: by
reply views Thread by Craig | last post: by
8 posts views Thread by EBG | last post: by
2 posts views Thread by Margaret Werdermann | last post: by
7 posts views Thread by hbm9966 | last post: by
4 posts views Thread by laredotornado | last post: by
3 posts views Thread by Geoff Cox | last post: by
1 post views Thread by Korara | last post: by
reply views Thread by warner | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.