cformsII Support Forum
Current User: Guest *Frequently Asked Questions*
Search 
Search Forums:


 




Rejecting the '=' character

Add a New Topic Reply to Post
Post

Mark - Guest

7:17 pm - August 1, 2007

I need a field where people can input a YouTube link. All YouTube links include the = (equals) character. However, when inputted, and the form sent- I recieve it with either the = missing, OR missing and transforming a few characters after it..

Example:

http://www.youtube.com/watch?v=d4olBjuUe0U

becomes...
http://www.youtube.com/watch?vÔolBjuUe0U

 

This form was the easiest I have ever seen to setup, and I really don't want to have to go through the trouble of installing another one, so i'm hoping my issue can be resolved... Any suggestions? 

Oliver - Admin

2:00 pm - August 4, 2007

posts 3656

I'm still traveling but will look at your issue once I'm back home.

Mark - Guest

5:20 pm - August 4, 2007

Thanks Oliver!

Oliver - Admin

8:24 pm - August 5, 2007

posts 3656

The DB Tracking page actually shows the proper URL, the reason why it's not working with email is due to the "quoted printable" content encoding. Here is a fix that will also go into v5.4:

In cforms.php, search for (2x):

    $htmlvalue = $value;

and replace with 

    $htmlvalue = str_replace("=","=3D",$value);

AND search for (2x):

    $htmlvalue = str_replace("\n","<br/>\n",$value);

and replace with

    $htmlvalue = str_replace(array("=","\n"),array("=3D","<br/>\n"),$value);

 

Mark - Guest

5:09 am - August 6, 2007

Simply amazing. Thanks a ton, I really appreciate it. Works great now!!

- Mark

Jean-Paul - Guest

3:02 pm - October 24, 2007

Hi Oliver,

 I still have this issue :-( Messages with url's pasted in the textarea are misprinted in the email:

http://www.-------------.com/forums/showthread.php?t762

instead of

http://www.-------------.com/forums/showthread.php?t=11762

Thanks for looking into this (again?)

Email header:

Received: from XXXXXXX by
 XXXXXXX (XXXXXXX) with Microsoft SMTP Server
 (TLS) id X.0.XXX.0; Wed, 24 Oct 2007 05:43:25 -0700
Received: from localhost (localhost.localdomain [127.0.0.1]) by
 XXXXXXXX.msoutlookonline.net (Postfix) with ESMTP id XXXXXXXXX for
 <XXXX@iphoneXXXXX.nl>; Wed, 24 Oct 2007 05:43:26 -0700 (PDT)
Received: from XXXXXXXX.msoutlookonline.net ([127.0.0.1]) by localhost
 (XXXXXXXXX.msoutlookonline.net [127.0.0.1]) (amavisd-new, port 10024) with
 ESMTP id XXXXXXXXXXfor <XXXXXXXXX@iphoneXXXXXXX.nl>; Wed, 24 Oct 2007 05:43:21
 -0700 (PDT)
Received: from plesk.xl-is.net (unknown [XXXXXXXXX]) (using TLSv1 with
 cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested)
 by XXXXXXX.msoutlookonline.net (Postfix) with ESMTP id XXXXXXXXX for
 <XXXXXX@iphoneXXXXXXXXXXX.nl>; Wed, 24 Oct 2007 05:43:00 -0700 (PDT)
Received: (qmail 19593 invoked by uid 48); 24 Oct 2007 14:42:57 +0200
Date: Wed, 24 Oct 2007 14:42:55 +0200
Message-ID: <XXXXXXXXX.qmail@plesk.xl-is.net>
To: XXXXXXX@iphoneXXXXXXXX.nl
Subject: Commentaar van een bezoeker
From: iPhoneclub.nl <XXXXXXX@XXXXXXXXXX.nl>
Reply-To: XXXX@XXXXXX.nl

MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="----MIME_BOUNDRY_main_message"
X-Virus-Scanned: by amavisd-new at exmf016-3.msoutlookonline.net
X-Amavis-Alert: BAD HEADER MIME error: error: part did not end with expected boundary
X-Spam-Status: No, hits=0.001 tagged_above=-999 required=5 tests=HTML_MESSAGE
X-Spam-Level:
Return-Path: XXXXXXXX@plesk.xl-is.net

The message body:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><style><!--
.fs-td { font-weight:bold; font-size:1.2em; border-bottom:1px solid #888; padding-top:15px; }
.data-td { font-weight:bold; padding-right:20px; }
--></style></head>
<body>
<p>On 24/10/2007, Jean-Paul Horn just submitted Contactformulier. You can get in touch with him/her via <a href="mailto:XXXXXXX@XXXXX.nl">XXXXXXX@XXXXX.nl</a> and might want to check out his/her web page at <a href="http://www.XXXXXX.nl">http://www.XXXXXXX.nl</a>. His or her IP is XX.XX.XXX.XX.</p>

<p>The message is:<br>
Blaat, ik was dit aan het controleren en je hebt deze al gezien .. test test http://www.-----------com/forums/showthread.php?t&#17;762 blaat</p></body></html>


 

Oliver - Admin

6:48 pm - October 24, 2007

posts 3656

That's funny, I just tried your form and copied me CC and works just fine (using Thunderbird as the client).

This by the way could be a Outlook 2007 issue. Outlook 2007 is known for all kinds of trouble, the online MS forums all full of it. 

Add a New Topic Reply to Post


Reply to Topic: Rejecting the '=' character
PLEASE READ THE FAQs FIRST! THANK YOU.

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 6 + 10        (Required)

Topic Reply:


 
© Simple:Press Forum - Version 3.1.3 (Build 356)