Email Obfuscation Breaks Outside Nodes
| Project: | FCKeditor - WYSIWYG HTML editor |
| Version: | 6.x-1.3-rc1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
The new built-in email obfuscation feature of FCKEditor 2.6.3+ seems to break when the email link is being entered in content outside node - ie., if creating an email hyperlink to appear in the site's footer, or on the contact page. To reproduce:
1) enter your Admin-> Settings-> Site Information.
2) in the "Footer Message" field select some text, and make it a hyperlink to a dummy email address.
Note that here it appears that all is ok, and that the email obfuscation is working fine.
3) save configuration.
4) check the link you've just created, in your site's footer.
You will see that it is a hyperlink with a href that looks like this:
http://yourdomain.com/+String.fromCharCode(..#numbers#..)+'?
This seems to happen on all mailto hyperlinks that FCKEditor makes outside 'normal' node content - ie., it happens also if you insert mailto links in the site's Contact page, mission statement, etc.

#1
I should add, that this also happens if FCKConfig.EmailProtection is set to "function".
#2
It looks like link is changed here:
$variables['footer_message'] = filter_xss_admin(variable_get('site_footer', FALSE));
(includes/theme.inc)
so I suggest setting
FCKConfig.EMailProtection = 'none' ;
I think it would be generally better to leave email address as it is during editing and perform obfuscation by Drupal engine (using special module).
#3
wwalc: I've tried leaving FCKConfig.EMailProtection = 'none', and enabling the SpamSpan module, but that does not seem to work, either - I've posted a bug report there, too. So your suggestion does not seem to be a usable workaround at this point. :(
#4
I am having the same problem in a Page node as well as in a CCK node type.
#5
Fixed by setting FCKConfig.EmailProtection to none in fckeditor.config.js
#6
Automatically closed -- issue fixed for 2 weeks with no activity.