The text filter, used for html text formats, applies obfuscation properly on a plain text email address (mail@example.com) and an email address enclosed in the <a> tag (<a href="mailto:mail@example.com">mail@example.com</a>).

The obfuscation support have to be extended to a text enclosed in the <a> tag (<a href="mailto:mail@example.com">Contact us</a>).

Comments

colorfield created an issue. See original summary.

colorfield’s picture

Issue summary: View changes
vidorado’s picture

Dirty patch for those using ROT13 method

Caution: ¡¡It breaks HTMLEntities method!!

mrshowerman’s picture

I see some work has been done in current HEAD, but there's no support for the filter.
Attached patch solves this.

mrshowerman’s picture

Status: Active » Needs review
nigelcunningham’s picture

I've just completed a bit of a rewrite, including changes in this area. Please test the 2.0.x dev branch.

Thanks!

mrshowerman’s picture

I tested the 2.0.x branch and it works nicely.

grimreaper’s picture

Status: Needs review » Reviewed & tested by the community

Hi,

I applied patch from comment 4 on 2.0.0 version and it fixes the bug.

Thanks!

nigelcunningham’s picture

Status: Reviewed & tested by the community » Postponed (maintainer needs more info)

Hi @Grimreaper.

I've just tried applying the patch and am not seeing a case where it still makes any difference - it applies, but doesn't seem to make any difference to the output. Could you help me out with a case where you're still seeing an issue without the patch being applied?

Thanks!

Nigel

grimreaper’s picture

Hi @Nigel Cunningham,

The following code in the RTE:

<a href="mailto:example@example.com">write us</a>

Before patch, will produce:

<a href="mailto:example@example.com" rel="nofollow">example@example.com</a>

After patch, will produce:

<a href="mailto:example@example.com" rel="nofollow">write us</a>

Hope this help.

Thanks :)

nigelcunningham’s picture

Status: Postponed (maintainer needs more info) » Active
nigelcunningham’s picture

Status: Active » Postponed (maintainer needs more info)

Morning Grimreaper.

Apologies first for the delay in getting back to this.

I've just enabled Obfuscate afresh in my module dev install, added the Obfuscate filter to the end of the Basic HTML configuration and put "write us" in the source of a normal node's WYSIWYG, using basic HTML for the format. On the resulting page, the source shows:


write us

Could I get you to point out what I'm doing differently? The commit I'm on is fa512f3b (2.0.x branch)

Thanks!

grimreaper’s picture

Hi @Nigel Cunningham,

No problem for the reply delay.

Since the last comment even with patch the problem still occured randomly so I gave up on using Obfuscate and uninstalled it.

I was on 2.0.0 version and I also had the "Convert URLs into links" filter enabled.

If on another project I will have to use Obfuscate and still got the problem, I will give news.

nigelcunningham’s picture

Thanks!

I'll try again with the info you provided.