Hi,

I have a form that I am submitting - where occasionally there will be a problem connecting to the remote server, when this happens the form should return to the user and provide a friendly message with an alternative.

It looks as though invisimail is filtering the email address returned to the form by the form_set_error function, with invisimail disabled I get the following:

<input type="email" class="form-text" maxlength="128" size="30" value="ian@foobar.com" name="email" id="email" placeholder="Email Address">

<input type="email" &#109;&#97;&#105;&#108;&#116;&#111;&#58;&#105;&#97;&#110;&#64;&#102;&#111;&#111;&#114;&#98;&#97;&#114;&#46;&#99;&#111;&#109;"="" value="&lt;a href=" name="email" id="email" placeholder="Email Address">

I'm unsure why invisimail touches the email address at this point? I would assume that it's just working as a text filter on the text types I have assigned it to?

Any help appreciated.

Comments

IanNorton’s picture

Issue summary: View changes

Adding code wrapping tags.

harshil.maradiya’s picture

Issue summary: View changes

Hello IanNorton,

Would you please provide exact steps for how should i reproduce this issue

As per your information i was trying to reproduce with webform module but dint face any issue in form_set_error .

If you provide all necessary information and steps to reproduce this will help so much to resolve issues.

Please let me know if you need more information.

Thanks & Regards
Harshil

Anonymous’s picture

Our email links (created in WSIWYG as mailto links) are turning into encoded messes also. For some reason it is adding the base url for our site to the email.

WYSIWYG source: <p>For more information, contact Nicole Miller at 352-797-5174 or <a href="mailto:millern@phsc.edu">email</a>.</p>

Display source:

<div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"> <p>For more information, contact Nicole Miller at 352-797-5174 or <a href="http://phsc.edu/%26#109;&amp;#97;&amp;#105;&amp;#108;&amp;#116;&amp;#111;&amp;#58;&amp;#109;&amp;#105;&amp;#108;&amp;#108;&amp;#101;&amp;#114;&amp;#110;&amp;#64;&amp;#112;&amp;#104;&amp;#115;&amp;#99;&amp;#46;&amp;#101;&amp;#100;&amp;#117;">email</a>.</p>
 </div></div></div>

Not sure why, but I redid this one and it corrected itself. The example below displays correctly in the browser.

WYSIWYG source: <p><strong>Are you ready to get started? Schedule a consultation with a program specialist by calling&nbsp; 727-816-3227 or via <a href="mailto:tradegrant@phsc.edu">email</a>.</strong></p>

Display source:

<div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded">
<p><strong>Are you ready to get started? Schedule a consultation with a program specialist by calling&nbsp; 727-816-3227 or via <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#116;&#114;&#97;&#100;&#101;&#103;&#114;&#97;&#110;&#116;&#64;&#112;&#104;&#115;&#99;&#46;&#101;&#100;&#117;">email</a>.</strong></p>
</div></div></div>
Anonymous’s picture

Status: Active » Closed (works as designed)

I'm good. Thanks to some comments on a bug report. I had no idea where to configure invisimail...

This is what I did...

Configuration -> Text Formats -> Configure

Uncheck: Encode email addresses: Javascript-wrapped HTML entities
Check: Encode email addresses: HTML entities

Drag the Encode option down to the bottom of the FILTER PROCESSING ORDER.

Save.

I instructed my users to just enter the email in text, not try to link it to an email address.

Looks like everything is fine.