voodmania
voodmania

Reputation: 73

href mailto not working in Joomla 2.5 module

I'm setting up a new Joomla 2.5 web, and I've find this problem.

When I use a mailto link in an article, everything works as it expected, but if I do the same in a module, javascript code replace the email.

Some sample source output:

<a class="contact-icons mail" href="mailto:
<script type='text/javascript'>
<!--
var prefix = '&#109;a' + 'i&#108;' + '&#116;o';
var path = 'hr' + 'ef' + '=';
var addy21722 = '[email protected]';
document.write('<a ' + path + '\'' + prefix + ':' + addy21722 + '\'>');
document.write(addy21722);
document.write('<\/a>');
//-->\n </script><script type='text/javascript'>
<!--
document.write('<span style=\'display: none;\'>');
//-->
</script>
<script type='text/javascript'>
<!--
document.write('</');
document.write('span>');
//-->
</script>"></a>

I can see the problem lays in the obfuscation code, but I can't understand why only fails in a module.

Upvotes: 1

Views: 2473

Answers (1)

Omega
Omega

Reputation: 3038

I believe it's the email cloaking that's causing this for you. Read this topic page to find out more.

Upvotes: 2

Related Questions