cforms II User Forum

Registration is currently disabled.
Guest

FAQs

Login form protected by Login LockDown.


Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

    

Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Rejecting the '=' character
August 1, 2007
7:17 pm
Mark
Guest

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? 

August 4, 2007
2:00 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

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

August 4, 2007
5:20 pm
Mark
Guest

Thanks Oliver!

August 5, 2007
8:24 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

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);

 

August 6, 2007
5:09 am
Mark
Guest

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

- Mark

October 24, 2007
3:02 pm
Jean-Paul
Guest

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&gt;. 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>


 

October 24, 2007
6:48 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

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. 

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
27 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3732

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5332

Posts: 18695

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)