In several web browsers, the email address in not correctly printed in the href attribute of <a> tag.
The email is correctly printed (ex. firstname.name@domain.fr) when user see the page, but when he want to copy the email address or when mouse is hover the link , the '@' character is replaced by '%40' (mailto:firstname.name%40domain.fr).

This seems to occur with IE , chrome, safari on windows7, and chrome on unbutu.
When click on the mailto link, the email address is correctly set on the email, except with chrome on ubuntu where the recipient address remains something like firstname.name%40domain.fr.

These problems do not arise with firefox.

Comments

hanskuiters’s picture

In spamspan.js I changed line #42:

  .attr("href", _mailto)

to

  .attr("href", decodeURIComponent(_mailto))

You should find it yourself in the compressed js file, because that is what the module uses.

lucuhb’s picture

Status: Active » Fixed

this fixes my issue, thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

gpk’s picture

Issue summary: View changes
Status: Closed (fixed) » Active

Re-opening. The issue has not been fixed in the module's code, although #1 could provide the basis for a patch.

peterx’s picture

I changed the code for D7. I do not have D6 sites for testing a change to D6 code. This module needs a maintainer for the D6 branch.

peterx’s picture

Status: Active » Closed (cannot reproduce)

Please upgrade to Drupal 7 and test the code change or volunteer to maintain the D6 version because I do not have a D6 site.