Reputation: 73
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 = 'ma' + 'il' + 'to';
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