With the just released v1.5 none of the emails are converted back from "name [at] example [dot] com" format, and JS console shows an error:

Uncaught TypeError: Cannot call method 'replace' of null in spamspan.compressed.js

Plain text in the node is: [name@example.com].

When I substitute spamspan.js, the error is on line 34:

// Find the anchor text, and remove the round brackets from the start and end
	    var _anchorText = $("span." +  Drupal.settings.spamspan.t, this).html().replace(/^ \((.*)\)$/, "$1");

Inspecting the statement in the debugger, .html() returns null.

I rewrote that as:

// Find the anchor text, and remove the round brackets from the start and end
o=$("span." +  Drupal.settings.spamspan.t, this).html();
	    var _anchorText = o ? o.replace(/^ \((.*)\)$/, "$1") : '';

and the error is gone.

Comments

riisi’s picture

subscribing

lakka’s picture

Status: Active » Closed (fixed)

Thanks for reporting this. I have fixed the problem by reverting this part of the code to an earlier version, reviving the much less important #723460 which I will work on separately.